‪TYPO3CMS  ‪main
EnhanceStdWrapEvent.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 
21 
35 abstract class ‪EnhanceStdWrapEvent
36 {
37  public function ‪__construct(
38  private ?string $content,
39  private readonly array $configuration,
40  private readonly ‪ContentObjectRenderer $contentObjectRenderer
41  ) {}
42 
43  public function ‪getContent(): ?string
44  {
45  return $this->content;
46  }
47 
48  public function ‪setContent(string $content): void
49  {
50  $this->content = $content;
51  }
52 
53  public function ‪getConfiguration(): array
54  {
55  return $this->configuration;
56  }
57 
59  {
60  return $this->contentObjectRenderer;
61  }
62 }
‪TYPO3\CMS\Frontend\ContentObject\Event\EnhanceStdWrapEvent\getContent
‪getContent()
Definition: EnhanceStdWrapEvent.php:43
‪TYPO3\CMS\Frontend\ContentObject\Event\EnhanceStdWrapEvent\__construct
‪__construct(private ?string $content, private readonly array $configuration, private readonly ContentObjectRenderer $contentObjectRenderer)
Definition: EnhanceStdWrapEvent.php:37
‪TYPO3\CMS\Frontend\ContentObject\Event\EnhanceStdWrapEvent\getContentObjectRenderer
‪getContentObjectRenderer()
Definition: EnhanceStdWrapEvent.php:58
‪TYPO3\CMS\Frontend\ContentObject\Event\EnhanceStdWrapEvent\getConfiguration
‪getConfiguration()
Definition: EnhanceStdWrapEvent.php:53
‪TYPO3\CMS\Frontend\ContentObject\Event\EnhanceStdWrapEvent\setContent
‪setContent(string $content)
Definition: EnhanceStdWrapEvent.php:48
‪TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer
Definition: ContentObjectRenderer.php:102
‪TYPO3\CMS\Frontend\ContentObject\Event
Definition: AfterContentObjectRendererInitializedEvent.php:18
‪TYPO3\CMS\Frontend\ContentObject\Event\EnhanceStdWrapEvent
Definition: EnhanceStdWrapEvent.php:36