‪TYPO3CMS  ‪main
ModifyPageLayoutContentEvent.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;
22 
27 {
28  private string ‪$headerContent = '';
29  private string ‪$footerContent = '';
30 
31  public function ‪__construct(
32  private readonly ServerRequestInterface $request,
33  private readonly ‪ModuleTemplate $moduleTemplate
34  ) {}
35 
36  public function ‪getRequest(): ServerRequestInterface
37  {
38  return $this->request;
39  }
40 
42  {
43  return $this->moduleTemplate;
44  }
45 
50  public function ‪setHeaderContent(string $content): void
51  {
52  $this->headerContent = $content;
53  }
54 
58  public function ‪addHeaderContent(string $content): void
59  {
60  $this->headerContent .= $content;
61  }
62 
63  public function ‪getHeaderContent(): string
64  {
66  }
67 
72  public function ‪setFooterContent(string $content): void
73  {
74  $this->footerContent = $content;
75  }
76 
80  public function ‪addFooterContent(string $content): void
81  {
82  $this->footerContent .= $content;
83  }
84 
85  public function ‪getFooterContent(): string
86  {
88  }
89 }
‪TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent\getHeaderContent
‪getHeaderContent()
Definition: ModifyPageLayoutContentEvent.php:63
‪TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent\$footerContent
‪string $footerContent
Definition: ModifyPageLayoutContentEvent.php:29
‪TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent\setHeaderContent
‪setHeaderContent(string $content)
Definition: ModifyPageLayoutContentEvent.php:50
‪TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent
Definition: ModifyPageLayoutContentEvent.php:27
‪TYPO3\CMS\Backend\Template\ModuleTemplate
Definition: ModuleTemplate.php:46
‪TYPO3\CMS\Backend\Controller\Event
Definition: AfterBackendPageRenderEvent.php:18
‪TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent\__construct
‪__construct(private readonly ServerRequestInterface $request, private readonly ModuleTemplate $moduleTemplate)
Definition: ModifyPageLayoutContentEvent.php:31
‪TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent\getModuleTemplate
‪getModuleTemplate()
Definition: ModifyPageLayoutContentEvent.php:41
‪TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent\getRequest
‪getRequest()
Definition: ModifyPageLayoutContentEvent.php:36
‪TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent\getFooterContent
‪getFooterContent()
Definition: ModifyPageLayoutContentEvent.php:85
‪TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent\setFooterContent
‪setFooterContent(string $content)
Definition: ModifyPageLayoutContentEvent.php:72
‪TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent\$headerContent
‪string $headerContent
Definition: ModifyPageLayoutContentEvent.php:28
‪TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent\addFooterContent
‪addFooterContent(string $content)
Definition: ModifyPageLayoutContentEvent.php:80
‪TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent\addHeaderContent
‪addHeaderContent(string $content)
Definition: ModifyPageLayoutContentEvent.php:58