Newscoop\Form\Decorator\Form::getOptions PHP Method

getOptions() public method

setting the action to the template action
public getOptions ( ) : array
return array
    public function getOptions()
    {
        parent::getOptions();
        $name = '';
        if (null !== ($element = $this->getElement())) {
            $name = $element->getFullyQualifiedName();
            $this->_options['name'] = $name;
        }
        if (isset($this->_options['action'])) {
            $this->_options['action'] = "{{" . $name . ".action}}";
        }
        return $this->_options;
    }