‪TYPO3CMS  ‪main
FilterMenuItemsEvent.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  public function ‪__construct(
29  private readonly array $allMenuItems,
30  private array $filteredMenuItems,
31  private readonly array $menuConfiguration,
32  private readonly array $itemConfiguration,
33  private readonly array $bannedMenuItems,
34  private readonly array $excludedDoktypes,
35  private readonly ‪Site $site,
36  private readonly ‪Context $context,
37  private readonly array $currentPage
38  ) {}
39 
40  public function ‪getAllMenuItems(): array
41  {
42  return $this->allMenuItems;
43  }
44 
45  public function ‪getFilteredMenuItems(): array
46  {
47  return $this->filteredMenuItems;
48  }
49 
50  public function ‪setFilteredMenuItems(array $filteredMenuItems): void
51  {
52  $this->filteredMenuItems = $filteredMenuItems;
53  }
54 
55  public function ‪getMenuConfiguration(): array
56  {
57  return $this->menuConfiguration;
58  }
59 
60  public function ‪getItemConfiguration(): array
61  {
62  return $this->itemConfiguration;
63  }
64 
65  public function ‪getBannedMenuItems(): array
66  {
67  return $this->bannedMenuItems;
68  }
69 
70  public function ‪getExcludedDoktypes(): array
71  {
72  return $this->excludedDoktypes;
73  }
74 
75  public function ‪getSite(): ‪Site
76  {
77  return $this->site;
78  }
79 
80  public function ‪getContext(): ‪Context
81  {
82  return $this->context;
83  }
84 
85  public function ‪getCurrentPage(): array
86  {
87  return $this->currentPage;
88  }
89 }
‪TYPO3\CMS\Frontend\Event
Definition: AfterCacheableContentIsGeneratedEvent.php:18
‪TYPO3\CMS\Frontend\Event\FilterMenuItemsEvent\getCurrentPage
‪getCurrentPage()
Definition: FilterMenuItemsEvent.php:85
‪TYPO3\CMS\Frontend\Event\FilterMenuItemsEvent\setFilteredMenuItems
‪setFilteredMenuItems(array $filteredMenuItems)
Definition: FilterMenuItemsEvent.php:50
‪TYPO3\CMS\Frontend\Event\FilterMenuItemsEvent\getAllMenuItems
‪getAllMenuItems()
Definition: FilterMenuItemsEvent.php:40
‪TYPO3\CMS\Frontend\Event\FilterMenuItemsEvent\getBannedMenuItems
‪getBannedMenuItems()
Definition: FilterMenuItemsEvent.php:65
‪TYPO3\CMS\Core\Context\Context
Definition: Context.php:54
‪TYPO3\CMS\Core\Site\Entity\Site
Definition: Site.php:42
‪TYPO3\CMS\Frontend\Event\FilterMenuItemsEvent\getExcludedDoktypes
‪getExcludedDoktypes()
Definition: FilterMenuItemsEvent.php:70
‪TYPO3\CMS\Frontend\Event\FilterMenuItemsEvent\getItemConfiguration
‪getItemConfiguration()
Definition: FilterMenuItemsEvent.php:60
‪TYPO3\CMS\Frontend\Event\FilterMenuItemsEvent\getMenuConfiguration
‪getMenuConfiguration()
Definition: FilterMenuItemsEvent.php:55
‪TYPO3\CMS\Frontend\Event\FilterMenuItemsEvent
Definition: FilterMenuItemsEvent.php:27
‪TYPO3\CMS\Frontend\Event\FilterMenuItemsEvent\getSite
‪getSite()
Definition: FilterMenuItemsEvent.php:75
‪TYPO3\CMS\Frontend\Event\FilterMenuItemsEvent\__construct
‪__construct(private readonly array $allMenuItems, private array $filteredMenuItems, private readonly array $menuConfiguration, private readonly array $itemConfiguration, private readonly array $bannedMenuItems, private readonly array $excludedDoktypes, private readonly Site $site, private readonly Context $context, private readonly array $currentPage)
Definition: FilterMenuItemsEvent.php:28
‪TYPO3\CMS\Frontend\Event\FilterMenuItemsEvent\getContext
‪getContext()
Definition: FilterMenuItemsEvent.php:80
‪TYPO3\CMS\Frontend\Event\FilterMenuItemsEvent\getFilteredMenuItems
‪getFilteredMenuItems()
Definition: FilterMenuItemsEvent.php:45