public function open(array $options = [], $type = null) { if (!is_null($type)) { $this->type = $type; } return parent::open($options); }
public function open(array $options = [], $type = 'horizontal') { // Set the form type $this->setType($type); // Make sure the form has the proper class $formClass = $this->allowedTypes[$this->type]; $options = $this->verifyHasOption($options, 'class', $formClass); return parent::open($options); }