public function createContainer() { // create default container if ($this->option('no_form')) { $container = new \FormKit\Element\Div(); return $container; } else { $container = new \FormKit\Element\Form(); if ($this->enctype) { $container->enctype($this->enctype); } if ($this->method) { $container->method($this->method); } if ($formId = $this->option('form_id')) { $container->setId($formId); } if ($formClass = $this->option('form_class')) { $container->addClass($formClass); } return $container; } }