/** * @param Form $form */ protected function configure(Form $form) { $form->addText('name', 'Name'); $form->addSelect('file', 'File')->setItems($this->templateManager->getLayouts()); $form->setCurrentGroup(); $form->addSaveButton('Save'); }
protected function getScannedLayouts() { if ($this->_layouts === NULL) { $this->_layouts = array(); foreach ($this->context->parameters['modules'] as $name => $item) { $this->_layouts[$name] = $this->templateManager->getLayouts($name); } } return $this->_layouts; }