2 namespace TYPO3\CMS\Aboutmodules\Controller;
52 parent::__construct();
64 parent::initializeView($view);
66 $view->getModuleTemplate()->getDocHeaderComponent()->setMetaInformation([]);
77 $contentWarnings =
'';
79 if (is_array(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
't3lib/class.t3lib_befunc.php'][
'displayWarningMessages'])) {
80 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
't3lib/class.t3lib_befunc.php'][
'displayWarningMessages'] as $classRef) {
82 if (method_exists($hookObj,
'displayWarningMessages_postProcess')) {
83 $hookObj->displayWarningMessages_postProcess($warnings);
87 if (!empty($warnings)) {
88 if (count($warnings) > 1) {
89 $securityWarnings =
'<ul><li>' . implode(
'</li><li>', $warnings) .
'</li></ul>';
91 $securityWarnings =
'<p>' . implode(
'', $warnings) .
'</p>';
96 $this->languageService->sL(
'LLL:EXT:lang/locallang_core.xlf:warning.header'),
99 $contentWarnings =
'<div style="margin: 20px 0;">' . $securityMessage->render() .
'</div>';
103 $this->view->assignMultiple(
105 'TYPO3Version' => TYPO3_version,
107 'warningMessages' => $contentWarnings,
108 'modules' => $this->getModulesData()
119 protected function getModulesData()
123 $loadedModules->observeWorkspaces =
true;
124 $loadedModules->load(
$GLOBALS[
'TBE_MODULES']);
125 $mainModulesData = array();
126 foreach ($loadedModules->modules as $moduleName => $moduleInfo) {
127 $mainModuleData = array();
128 $moduleKey = $moduleName .
'_tab';
129 $mainModuleData[
'name'] = $moduleName;
130 $mainModuleData[
'label'] = $this->languageService->moduleLabels[
'tabs'][$moduleKey];
131 if (is_array($moduleInfo[
'sub']) && !empty($moduleInfo[
'sub'])) {
132 $mainModuleData[
'subModules'] = $this->
getSubModuleData($moduleName, $moduleInfo[
'sub']);
134 $mainModulesData[] = $mainModuleData;
136 return $mainModulesData;
148 $subModulesData = array();
149 foreach ($subModulesInfo as $subModuleName => $subModuleInfo) {
150 $subModuleKey = $moduleName .
'_' . $subModuleName .
'_tab';
151 $subModuleData = array();
152 $subModuleData[
'name'] = $subModuleName;
154 $subModuleData[
'label'] = $this->languageService->moduleLabels[
'tabs'][$subModuleKey];
155 $subModuleData[
'shortDescription'] = $this->languageService->moduleLabels[
'labels'][$subModuleKey .
'label'];
156 $subModuleData[
'longDescription'] = $this->languageService->moduleLabels[
'labels'][$subModuleKey .
'descr'];
157 $subModulesData[] = $subModuleData;
159 return $subModulesData;