‪TYPO3CMS  10.4
AbstractController.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
20 
26 {
27  const ‪TRIGGER_RefreshModuleMenu = 'refreshModuleMenu';
28  const ‪TRIGGER_RefreshTopbar = 'refreshTopbar';
29 
33  protected ‪$triggerArguments = [
36  ];
37 
45  protected function ‪translate($key, ‪$arguments = null)
46  {
47  return ‪LocalizationUtility::translate($key, 'extensionmanager', ‪$arguments) ?? '';
48  }
49 
55  protected function ‪handleTriggerArguments()
56  {
57  $triggers = [];
58  foreach ($this->triggerArguments as $triggerArgument) {
59  if ($this->request->hasArgument($triggerArgument)) {
60  $triggers[$triggerArgument] = $this->request->getArgument($triggerArgument);
61  }
62  }
63  $this->view->assign('triggers', $triggers);
64  }
65 }
‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController\$arguments
‪TYPO3 CMS Extbase Mvc Controller Arguments $arguments
Definition: ActionController.php:141
‪TYPO3\CMS\Extensionmanager\Controller\AbstractController\translate
‪string translate($key, $arguments=null)
Definition: AbstractController.php:44
‪TYPO3\CMS\Extbase\Utility\LocalizationUtility
Definition: LocalizationUtility.php:33
‪TYPO3\CMS\Extensionmanager\Controller\AbstractController\$triggerArguments
‪array $triggerArguments
Definition: AbstractController.php:32
‪TYPO3\CMS\Extensionmanager\Controller
Definition: AbstractController.php:16
‪TYPO3\CMS\Extensionmanager\Controller\AbstractController\TRIGGER_RefreshModuleMenu
‪const TRIGGER_RefreshModuleMenu
Definition: AbstractController.php:27
‪TYPO3\CMS\Extbase\Utility\LocalizationUtility\translate
‪static string null translate(string $key, ?string $extensionName=null, array $arguments=null, string $languageKey=null, array $alternativeLanguageKeys=null)
Definition: LocalizationUtility.php:67
‪TYPO3\CMS\Extensionmanager\Controller\AbstractController\TRIGGER_RefreshTopbar
‪const TRIGGER_RefreshTopbar
Definition: AbstractController.php:28
‪TYPO3\CMS\Extensionmanager\Controller\AbstractController
Definition: AbstractController.php:26
‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
Definition: ActionController.php:55
‪TYPO3\CMS\Extensionmanager\Controller\AbstractController\handleTriggerArguments
‪handleTriggerArguments()
Definition: AbstractController.php:54