/**
  * Get the form action from the options.
  *
  * @param array $options
  *
  * @return string
  */
 protected function getAction(array $options)
 {
     // We will also check for a "route" or "action" parameter on the array so that
     // developers can easily specify a route or controller action when creating
     // a form providing a convenient interface for creating the form actions.
     if (isset($options['url'])) {
         return $this->getUrlAction($options['url']);
     }
     if (isset($options['route'])) {
         return $this->getRouteAction($options['route']);
     } elseif (isset($options['action'])) {
         return $this->getControllerAction($options['action']);
     }
     return $this->url->current();
 }
 /**
  * @inheritdoc
  */
 public function getCurrentUrl()
 {
     return $this->url->current();
 }