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