‪TYPO3CMS  ‪main
AbstractGridObject.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 
25 
39 abstract class ‪AbstractGridObject
40 {
41  protected readonly ‪IconFactory ‪$iconFactory;
42 
43  public function ‪__construct(protected ‪PageLayoutContext $context)
44  {
45  $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);
46  }
47 
49  {
50  return $this->context;
51  }
52 
54  {
55  return ‪$GLOBALS['LANG'];
56  }
57 
59  {
60  return ‪$GLOBALS['BE_USER'];
61  }
62 }
‪TYPO3\CMS\Backend\View\BackendLayout\Grid\AbstractGridObject\getContext
‪getContext()
Definition: AbstractGridObject.php:48
‪TYPO3\CMS\Backend\View\BackendLayout\Grid\AbstractGridObject
Definition: AbstractGridObject.php:40
‪TYPO3\CMS\Core\Imaging\IconFactory
Definition: IconFactory.php:34
‪TYPO3\CMS\Backend\View\BackendLayout\Grid\AbstractGridObject\$iconFactory
‪readonly IconFactory $iconFactory
Definition: AbstractGridObject.php:41
‪TYPO3\CMS\Backend\View\BackendLayout\Grid\AbstractGridObject\__construct
‪__construct(protected PageLayoutContext $context)
Definition: AbstractGridObject.php:43
‪TYPO3\CMS\Backend\View\BackendLayout\Grid\AbstractGridObject\getBackendUser
‪getBackendUser()
Definition: AbstractGridObject.php:58
‪TYPO3\CMS\Backend\View\BackendLayout\Grid
Definition: AbstractGridObject.php:18
‪TYPO3\CMS\Core\Authentication\BackendUserAuthentication
Definition: BackendUserAuthentication.php:62
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:25
‪TYPO3\CMS\Backend\View\PageLayoutContext
Definition: PageLayoutContext.php:42
‪TYPO3\CMS\Core\Localization\LanguageService
Definition: LanguageService.php:46
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:52
‪TYPO3\CMS\Backend\View\BackendLayout\Grid\AbstractGridObject\getLanguageService
‪getLanguageService()
Definition: AbstractGridObject.php:53