/** * {@inheritdoc} */ public function createForm(array $options, $defaultData = null) : FormInterface { $form = $this->getFormService($options); $this->buildForm($form); $this->formHandler->initForm($form, $defaultData); $this->dispatchOnInitEvent($form, $defaultData); return $form; }
/** * {@inheritdoc} */ public function createForm($options, $defaultData = null) { $form = $this->getFormService($options); $this->buildForm($form); $this->formHandler->initForm($form, $defaultData); $this->eventDispatcher->dispatchOnFormInitEvent($this, $form); return $form; }
/** * {@inheritdoc} */ public function createForm(array $options, $defaultData = null) : FormInterface { $form = $this->getFormService($options); $this->buildForm($form); $this->dispatchFormEvent($form, $defaultData, FormEvent::FORM_PRE_INIT_EVENT); $this->formHandler->initForm($form, $defaultData); $this->dispatchFormEvent($form, $defaultData, FormEvent::FORM_POST_INIT_EVENT); return $form; }
/** * {@inheritdoc} */ public function isAction($actionName) { return $this->formHandler->isFormAction($actionName); }