Collective\Html\FormBuilder::getAction PHP Метод

getAction() защищенный Метод

Get the form action from the options.
protected getAction ( array $options ) : string
$options array
Результат 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();
    }