protected function createComponentEditClanekForm() { $form = new UpravitClanekForm($this->redakce->nazvyRubrikProClanky(), $this->prava->getPristupy($this->modul), $this->clanek); $form->onSuccess[] = callback($this, 'editClanekFormSubmitted'); return $form; }