‪TYPO3CMS  ‪main
ModifyInfoModuleContentEvent.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 
20 use Psr\Http\Message\ServerRequestInterface;
23 
28 {
29  private string ‪$headerContent = '';
30  private string ‪$footerContent = '';
31 
32  public function ‪__construct(
33  private readonly bool $access,
34  private readonly ServerRequestInterface $request,
35  private readonly ‪ModuleInterface $currentModule,
36  private readonly ‪ModuleTemplate $moduleTemplate,
37  ) {}
38 
45  public function ‪hasAccess(): bool
46  {
47  return $this->access;
48  }
49 
50  public function ‪getRequest(): ServerRequestInterface
51  {
52  return $this->request;
53  }
54 
56  {
57  return $this->currentModule;
58  }
59 
61  {
62  return $this->moduleTemplate;
63  }
64 
69  public function ‪setHeaderContent(string $content): void
70  {
71  $this->headerContent = $content;
72  }
73 
77  public function ‪addHeaderContent(string $content): void
78  {
79  $this->headerContent .= $content;
80  }
81 
82  public function ‪getHeaderContent(): string
83  {
85  }
86 
91  public function ‪setFooterContent(string $content): void
92  {
93  $this->footerContent = $content;
94  }
95 
99  public function ‪addFooterContent(string $content): void
100  {
101  $this->footerContent .= $content;
102  }
103 
104  public function ‪getFooterContent(): string
105  {
107  }
108 }
‪TYPO3\CMS\Info\Controller\Event\ModifyInfoModuleContentEvent\__construct
‪__construct(private readonly bool $access, private readonly ServerRequestInterface $request, private readonly ModuleInterface $currentModule, private readonly ModuleTemplate $moduleTemplate,)
Definition: ModifyInfoModuleContentEvent.php:32
‪TYPO3\CMS\Info\Controller\Event\ModifyInfoModuleContentEvent\$footerContent
‪string $footerContent
Definition: ModifyInfoModuleContentEvent.php:30
‪TYPO3\CMS\Info\Controller\Event\ModifyInfoModuleContentEvent\$headerContent
‪string $headerContent
Definition: ModifyInfoModuleContentEvent.php:29
‪TYPO3\CMS\Info\Controller\Event\ModifyInfoModuleContentEvent\setHeaderContent
‪setHeaderContent(string $content)
Definition: ModifyInfoModuleContentEvent.php:69
‪TYPO3\CMS\Info\Controller\Event\ModifyInfoModuleContentEvent\getModuleTemplate
‪getModuleTemplate()
Definition: ModifyInfoModuleContentEvent.php:60
‪TYPO3\CMS\Info\Controller\Event\ModifyInfoModuleContentEvent\addFooterContent
‪addFooterContent(string $content)
Definition: ModifyInfoModuleContentEvent.php:99
‪TYPO3\CMS\Backend\Template\ModuleTemplate
Definition: ModuleTemplate.php:46
‪TYPO3\CMS\Info\Controller\Event\ModifyInfoModuleContentEvent\getFooterContent
‪getFooterContent()
Definition: ModifyInfoModuleContentEvent.php:104
‪TYPO3\CMS\Info\Controller\Event\ModifyInfoModuleContentEvent
Definition: ModifyInfoModuleContentEvent.php:28
‪TYPO3\CMS\Info\Controller\Event\ModifyInfoModuleContentEvent\getRequest
‪getRequest()
Definition: ModifyInfoModuleContentEvent.php:50
‪TYPO3\CMS\Backend\Module\ModuleInterface
Definition: ModuleInterface.php:24
‪TYPO3\CMS\Info\Controller\Event\ModifyInfoModuleContentEvent\setFooterContent
‪setFooterContent(string $content)
Definition: ModifyInfoModuleContentEvent.php:91
‪TYPO3\CMS\Info\Controller\Event\ModifyInfoModuleContentEvent\hasAccess
‪hasAccess()
Definition: ModifyInfoModuleContentEvent.php:45
‪TYPO3\CMS\Info\Controller\Event\ModifyInfoModuleContentEvent\getHeaderContent
‪getHeaderContent()
Definition: ModifyInfoModuleContentEvent.php:82
‪TYPO3\CMS\Info\Controller\Event
Definition: ModifyInfoModuleContentEvent.php:18
‪TYPO3\CMS\Info\Controller\Event\ModifyInfoModuleContentEvent\getCurrentModule
‪getCurrentModule()
Definition: ModifyInfoModuleContentEvent.php:55
‪TYPO3\CMS\Info\Controller\Event\ModifyInfoModuleContentEvent\addHeaderContent
‪addHeaderContent(string $content)
Definition: ModifyInfoModuleContentEvent.php:77