‪TYPO3CMS  10.4
ModifyLoadedPageTsConfigEvent.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 
24 {
28  private ‪$tsConfig;
29 
33  private ‪$rootLine;
34 
35  public function ‪__construct(array ‪$tsConfig, array ‪$rootLine)
36  {
37  $this->tsConfig = ‪$tsConfig;
38  $this->rootLine = ‪$rootLine;
39  }
40 
41  public function ‪getTsConfig(): array
42  {
43  return ‪$this->tsConfig;
44  }
45 
46  public function ‪addTsConfig(string ‪$tsConfig): void
47  {
48  $this->tsConfig[] = ‪$tsConfig;
49  }
50 
51  public function ‪setTsConfig(array ‪$tsConfig): void
52  {
53  $this->tsConfig = ‪$tsConfig;
54  }
55 
56  public function ‪getRootLine(): array
57  {
58  return ‪$this->rootLine;
59  }
60 }
‪TYPO3\CMS\Core\Configuration\Event\ModifyLoadedPageTsConfigEvent\getTsConfig
‪getTsConfig()
Definition: ModifyLoadedPageTsConfigEvent.php:39
‪TYPO3\CMS\Core\Configuration\Event\ModifyLoadedPageTsConfigEvent\setTsConfig
‪setTsConfig(array $tsConfig)
Definition: ModifyLoadedPageTsConfigEvent.php:49
‪TYPO3\CMS\Core\Configuration\Event
Definition: AfterTcaCompilationEvent.php:18
‪TYPO3\CMS\Core\Configuration\Event\ModifyLoadedPageTsConfigEvent\$tsConfig
‪array $tsConfig
Definition: ModifyLoadedPageTsConfigEvent.php:27
‪TYPO3\CMS\Core\Configuration\Event\ModifyLoadedPageTsConfigEvent\$rootLine
‪array $rootLine
Definition: ModifyLoadedPageTsConfigEvent.php:31
‪TYPO3\CMS\Core\Configuration\Event\ModifyLoadedPageTsConfigEvent\__construct
‪__construct(array $tsConfig, array $rootLine)
Definition: ModifyLoadedPageTsConfigEvent.php:33
‪TYPO3\CMS\Core\Configuration\Event\ModifyLoadedPageTsConfigEvent\addTsConfig
‪addTsConfig(string $tsConfig)
Definition: ModifyLoadedPageTsConfigEvent.php:44
‪TYPO3\CMS\Core\Configuration\Event\ModifyLoadedPageTsConfigEvent\getRootLine
‪getRootLine()
Definition: ModifyLoadedPageTsConfigEvent.php:54
‪TYPO3\CMS\Core\Configuration\Event\ModifyLoadedPageTsConfigEvent
Definition: ModifyLoadedPageTsConfigEvent.php:24