/** * @param \EBT\ExtensionBuilder\Domain\Model\BackendModule $backendModule * @param string $type * @throws \InvalidArgumentException */ public function prepareLabelArrayForBackendModule($backendModule) { $labelArray = array(); $labelArray['mlang_tabs_tab'] = htmlspecialchars($backendModule->getName()); $labelArray['mlang_labels_tabdescr'] = htmlspecialchars($backendModule->getDescription()); $labelArray['mlang_tabs_tab'] = htmlspecialchars($backendModule->getTabLabel()); return $labelArray; }
/** * @param \EBT\ExtensionBuilder\Domain\Model\BackendModule $backendModule * @param \EBT\ExtensionBuilder\Domain\Model\Extension $extension * @return void */ private function validateBackendModuleConfiguration($backendModule, $extension) { $controllerActionCombinationConfiguration = $backendModule->getControllerActionCombinations(); if (is_array($controllerActionCombinationConfiguration)) { $firstControllerAction = TRUE; foreach ($controllerActionCombinationConfiguration as $controllerName => $actionNames) { $this->validateActionConfiguration($controllerName, $actionNames, 'module ' . $backendModule->getName(), $extension, $firstControllerAction); $firstControllerAction = FALSE; } } }