‪TYPO3CMS  ‪main
ModifyIconForResourcePropertiesEvent.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 TYPO3\CMS\Core\Imaging\IconSize;
22 
28 {
29  public function ‪__construct(
30  private readonly ‪ResourceInterface $resource,
31  private readonly IconSize $size,
32  private readonly array $options,
33  private ?string $iconIdentifier,
34  private ?string $overlayIdentifier
35  ) {}
36 
38  {
39  return $this->resource;
40  }
41 
42  public function ‪getIconSize(): IconSize
43  {
44  return $this->size;
45  }
46 
50  public function ‪getSize(): string
51  {
52  $this->size->triggerDeprecation();
53  return $this->size->value;
54  }
55 
56  public function ‪getOptions(): array
57  {
58  return $this->options;
59  }
60 
61  public function ‪getIconIdentifier(): ?string
62  {
63  return $this->iconIdentifier;
64  }
65 
66  public function ‪setIconIdentifier(?string $iconIdentifier): void
67  {
68  $this->iconIdentifier = $iconIdentifier;
69  }
70 
71  public function ‪getOverlayIdentifier(): ?string
72  {
73  return $this->overlayIdentifier;
74  }
75 
76  public function ‪setOverlayIdentifier(?string $overlayIdentifier): void
77  {
78  $this->overlayIdentifier = $overlayIdentifier;
79  }
80 }
‪TYPO3\CMS\Core\Imaging\Event\ModifyIconForResourcePropertiesEvent\getIconSize
‪getIconSize()
Definition: ModifyIconForResourcePropertiesEvent.php:42
‪TYPO3\CMS\Core\Imaging\Event\ModifyIconForResourcePropertiesEvent\getSize
‪getSize()
Definition: ModifyIconForResourcePropertiesEvent.php:50
‪TYPO3\CMS\Core\Imaging\Event\ModifyIconForResourcePropertiesEvent\getIconIdentifier
‪getIconIdentifier()
Definition: ModifyIconForResourcePropertiesEvent.php:61
‪TYPO3\CMS\Core\Imaging\Event
Definition: ModifyIconForResourcePropertiesEvent.php:18
‪TYPO3\CMS\Core\Imaging\Event\ModifyIconForResourcePropertiesEvent\getResource
‪getResource()
Definition: ModifyIconForResourcePropertiesEvent.php:37
‪TYPO3\CMS\Core\Imaging\Event\ModifyIconForResourcePropertiesEvent
Definition: ModifyIconForResourcePropertiesEvent.php:28
‪TYPO3\CMS\Core\Imaging\Event\ModifyIconForResourcePropertiesEvent\getOverlayIdentifier
‪getOverlayIdentifier()
Definition: ModifyIconForResourcePropertiesEvent.php:71
‪TYPO3\CMS\Core\Imaging\Event\ModifyIconForResourcePropertiesEvent\getOptions
‪getOptions()
Definition: ModifyIconForResourcePropertiesEvent.php:56
‪TYPO3\CMS\Core\Imaging\Event\ModifyIconForResourcePropertiesEvent\setIconIdentifier
‪setIconIdentifier(?string $iconIdentifier)
Definition: ModifyIconForResourcePropertiesEvent.php:66
‪TYPO3\CMS\Core\Resource\ResourceInterface
Definition: ResourceInterface.php:21
‪TYPO3\CMS\Core\Imaging\Event\ModifyIconForResourcePropertiesEvent\setOverlayIdentifier
‪setOverlayIdentifier(?string $overlayIdentifier)
Definition: ModifyIconForResourcePropertiesEvent.php:76
‪TYPO3\CMS\Core\Imaging\Event\ModifyIconForResourcePropertiesEvent\__construct
‪__construct(private readonly ResourceInterface $resource, private readonly IconSize $size, private readonly array $options, private ?string $iconIdentifier, private ?string $overlayIdentifier)
Definition: ModifyIconForResourcePropertiesEvent.php:29