‪TYPO3CMS  ‪main
ModifyImageSourceCollectionEvent.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 
26 {
27  public function ‪__construct(
28  private string $sourceCollection,
29  private readonly string $fullSourceCollection,
30  private readonly array $sourceConfiguration,
31  private readonly array $sourceRenderConfiguration,
32  private readonly ‪ContentObjectRenderer $contentObjectRenderer
33  ) {}
34 
35  public function ‪setSourceCollection(string $sourceCollection): void
36  {
37  $this->sourceCollection = $sourceCollection;
38  }
39 
40  public function ‪getSourceCollection(): string
41  {
42  return $this->sourceCollection;
43  }
44 
45  public function ‪getFullSourceCollection(): string
46  {
47  return $this->fullSourceCollection;
48  }
49 
50  public function ‪getSourceConfiguration(): array
51  {
52  return $this->sourceConfiguration;
53  }
54 
55  public function ‪getSourceRenderConfiguration(): array
56  {
57  return $this->sourceRenderConfiguration;
58  }
59 
61  {
62  return $this->contentObjectRenderer;
63  }
64 }
‪TYPO3\CMS\Frontend\ContentObject\Event\ModifyImageSourceCollectionEvent\getContentObjectRenderer
‪getContentObjectRenderer()
Definition: ModifyImageSourceCollectionEvent.php:60
‪TYPO3\CMS\Frontend\ContentObject\Event\ModifyImageSourceCollectionEvent
Definition: ModifyImageSourceCollectionEvent.php:26
‪TYPO3\CMS\Frontend\ContentObject\Event\ModifyImageSourceCollectionEvent\getSourceConfiguration
‪getSourceConfiguration()
Definition: ModifyImageSourceCollectionEvent.php:50
‪TYPO3\CMS\Frontend\ContentObject\Event\ModifyImageSourceCollectionEvent\getSourceCollection
‪getSourceCollection()
Definition: ModifyImageSourceCollectionEvent.php:40
‪TYPO3\CMS\Frontend\ContentObject\Event\ModifyImageSourceCollectionEvent\setSourceCollection
‪setSourceCollection(string $sourceCollection)
Definition: ModifyImageSourceCollectionEvent.php:35
‪TYPO3\CMS\Frontend\ContentObject\Event\ModifyImageSourceCollectionEvent\getSourceRenderConfiguration
‪getSourceRenderConfiguration()
Definition: ModifyImageSourceCollectionEvent.php:55
‪TYPO3\CMS\Frontend\ContentObject\Event\ModifyImageSourceCollectionEvent\getFullSourceCollection
‪getFullSourceCollection()
Definition: ModifyImageSourceCollectionEvent.php:45
‪TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer
Definition: ContentObjectRenderer.php:102
‪TYPO3\CMS\Frontend\ContentObject\Event
Definition: AfterContentObjectRendererInitializedEvent.php:18
‪TYPO3\CMS\Frontend\ContentObject\Event\ModifyImageSourceCollectionEvent\__construct
‪__construct(private string $sourceCollection, private readonly string $fullSourceCollection, private readonly array $sourceConfiguration, private readonly array $sourceRenderConfiguration, private readonly ContentObjectRenderer $contentObjectRenderer)
Definition: ModifyImageSourceCollectionEvent.php:27