コード例 #1
0
 /**
  * {@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;
 }
コード例 #2
0
 /**
  * {@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;
 }
コード例 #3
0
 /**
  * {@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;
 }
コード例 #4
0
ファイル: Form.php プロジェクト: Newman101/WellCommerce
 /**
  * {@inheritdoc}
  */
 public function isAction($actionName)
 {
     return $this->formHandler->isFormAction($actionName);
 }