‪TYPO3CMS  10.4
AbstractController.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
22 
27 {
28  protected const ‪MODULE_DATA_CURRENT_DASHBOARD_IDENTIFIER = 'dashboard/current_dashboard/';
29 
31  {
32  return ‪$GLOBALS['BE_USER'];
33  }
34 
36  {
37  return ‪$GLOBALS['LANG'];
38  }
39 
40  protected function ‪loadCurrentDashboard(): string
41  {
42  return $this->‪getBackendUser()->getModuleData(self::MODULE_DATA_CURRENT_DASHBOARD_IDENTIFIER) ?? '';
43  }
44 
45  protected function ‪saveCurrentDashboard(string $identifier): void
46  {
47  $this->‪getBackendUser()->pushModuleData(self::MODULE_DATA_CURRENT_DASHBOARD_IDENTIFIER, $identifier);
48  }
49 }
‪TYPO3\CMS\Dashboard\Controller\AbstractController\loadCurrentDashboard
‪loadCurrentDashboard()
Definition: AbstractController.php:40
‪TYPO3\CMS\Dashboard\Controller
Definition: AbstractController.php:18
‪TYPO3\CMS\Dashboard\Controller\AbstractController\MODULE_DATA_CURRENT_DASHBOARD_IDENTIFIER
‪const MODULE_DATA_CURRENT_DASHBOARD_IDENTIFIER
Definition: AbstractController.php:28
‪TYPO3\CMS\Dashboard\Controller\AbstractController\saveCurrentDashboard
‪saveCurrentDashboard(string $identifier)
Definition: AbstractController.php:45
‪TYPO3\CMS\Core\Authentication\BackendUserAuthentication
Definition: BackendUserAuthentication.php:62
‪TYPO3\CMS\Dashboard\Controller\AbstractController
Definition: AbstractController.php:27
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Core\Localization\LanguageService
Definition: LanguageService.php:42
‪TYPO3\CMS\Dashboard\Controller\AbstractController\getLanguageService
‪getLanguageService()
Definition: AbstractController.php:35
‪TYPO3\CMS\Dashboard\Controller\AbstractController\getBackendUser
‪getBackendUser()
Definition: AbstractController.php:30