public function generate() { if (TL_MODE == 'BE') { $objTemplate = new \BackendTemplate('be_wildcard'); $objTemplate->wildcard = '### FRONTENDEDIT FORM VALIDATOR ###'; $objTemplate->title = $this->headline; $objTemplate->id = $this->id; $objTemplate->link = $this->name; $objTemplate->href = 'contao/main.php?do=themes&table=tl_module&act=edit&id=' . $this->id; return $objTemplate->parse(); } \DataContainer::loadDataContainer($this->formHybridDataContainer); \System::loadLanguageFile($this->formHybridDataContainer); $this->noIdBehavior = 'redirect'; return parent::generate(); }
public function generate() { $this->intId = \FrontendUser::getInstance()->id; return parent::generate(); }