‪TYPO3CMS  ‪main
BeforeStdWrapContentStoredInCacheEvent.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 
30 {
31  public function ‪__construct(
32  private ?string $content,
33  private array $tags,
34  private string $key,
35  private ?int $lifetime,
36  private readonly array $configuration,
37  private readonly ‪ContentObjectRenderer $contentObjectRenderer
38  ) {}
39 
40  public function ‪getContent(): ?string
41  {
42  return $this->content;
43  }
44 
45  public function ‪setContent(string $content): void
46  {
47  $this->content = $content;
48  }
49 
50  public function ‪getTags(): array
51  {
52  return $this->tags;
53  }
54 
55  public function ‪setTags(array $tags): void
56  {
57  $this->tags = $tags;
58  }
59 
60  public function ‪getKey(): string
61  {
62  return $this->key;
63  }
64 
65  public function ‪setKey(string $key): void
66  {
67  $this->key = $key;
68  }
69 
70  public function ‪getLifetime(): ?int
71  {
72  return $this->lifetime;
73  }
74 
75  public function ‪setLifetime(?int $lifetime): void
76  {
77  $this->lifetime = $lifetime;
78  }
79 
80  public function ‪getConfiguration(): array
81  {
82  return $this->configuration;
83  }
84 
86  {
87  return $this->contentObjectRenderer;
88  }
89 }
‪TYPO3\CMS\Frontend\ContentObject\Event\BeforeStdWrapContentStoredInCacheEvent\__construct
‪__construct(private ?string $content, private array $tags, private string $key, private ?int $lifetime, private readonly array $configuration, private readonly ContentObjectRenderer $contentObjectRenderer)
Definition: BeforeStdWrapContentStoredInCacheEvent.php:31
‪TYPO3\CMS\Frontend\ContentObject\Event\BeforeStdWrapContentStoredInCacheEvent\getContentObjectRenderer
‪getContentObjectRenderer()
Definition: BeforeStdWrapContentStoredInCacheEvent.php:85
‪TYPO3\CMS\Frontend\ContentObject\Event\BeforeStdWrapContentStoredInCacheEvent\setContent
‪setContent(string $content)
Definition: BeforeStdWrapContentStoredInCacheEvent.php:45
‪TYPO3\CMS\Frontend\ContentObject\Event\BeforeStdWrapContentStoredInCacheEvent\getConfiguration
‪getConfiguration()
Definition: BeforeStdWrapContentStoredInCacheEvent.php:80
‪TYPO3\CMS\Frontend\ContentObject\Event\BeforeStdWrapContentStoredInCacheEvent\getTags
‪getTags()
Definition: BeforeStdWrapContentStoredInCacheEvent.php:50
‪TYPO3\CMS\Frontend\ContentObject\Event\BeforeStdWrapContentStoredInCacheEvent\setKey
‪setKey(string $key)
Definition: BeforeStdWrapContentStoredInCacheEvent.php:65
‪TYPO3\CMS\Frontend\ContentObject\Event\BeforeStdWrapContentStoredInCacheEvent\setLifetime
‪setLifetime(?int $lifetime)
Definition: BeforeStdWrapContentStoredInCacheEvent.php:75
‪TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer
Definition: ContentObjectRenderer.php:102
‪TYPO3\CMS\Frontend\ContentObject\Event
Definition: AfterContentObjectRendererInitializedEvent.php:18
‪TYPO3\CMS\Frontend\ContentObject\Event\BeforeStdWrapContentStoredInCacheEvent\setTags
‪setTags(array $tags)
Definition: BeforeStdWrapContentStoredInCacheEvent.php:55
‪TYPO3\CMS\Frontend\ContentObject\Event\BeforeStdWrapContentStoredInCacheEvent\getLifetime
‪getLifetime()
Definition: BeforeStdWrapContentStoredInCacheEvent.php:70
‪TYPO3\CMS\Frontend\ContentObject\Event\BeforeStdWrapContentStoredInCacheEvent\getKey
‪getKey()
Definition: BeforeStdWrapContentStoredInCacheEvent.php:60
‪TYPO3\CMS\Frontend\ContentObject\Event\BeforeStdWrapContentStoredInCacheEvent\getContent
‪getContent()
Definition: BeforeStdWrapContentStoredInCacheEvent.php:40
‪TYPO3\CMS\Frontend\ContentObject\Event\BeforeStdWrapContentStoredInCacheEvent
Definition: BeforeStdWrapContentStoredInCacheEvent.php:30