/** * {@inheritdoc} */ public function before() { $this->configForm = new Form('Configure'); $this->configForm->addString('name', tr('Application name')); $this->configForm->addString('version', tr('Version')); $this->configForm->addField('modules', DataType::object(), tr('Modules')); $this->view->data->availableModules = $this->getModules(); $this->view->data->configForm = $this->configForm; $this->view->data->title = tr('Configure application'); return null; }