/** @return Forms\Form */ protected function createComponentForm() { $form = new Forms\Form(); $this->translator !== NULL && $form->setTranslator($this->translator); $form->addProtection(); $form->onSuccess[] = $this->processForm; $form->onSubmit[] = $this->formSubmitted; return $form; }