‪TYPO3CMS  ‪main
ModifyImageManipulationPreviewUrlEvent.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  private string ‪$previewUrl = '';
28 
29  public function ‪__construct(
30  private readonly array $databaseRow,
31  private readonly array $fieldConfiguration,
32  private readonly ‪File $file,
33  ) {}
34 
35  public function ‪getDatabaseRow(): array
36  {
37  return $this->databaseRow;
38  }
39 
40  public function ‪getFieldConfiguration(): array
41  {
42  return $this->fieldConfiguration;
43  }
44 
45  public function ‪getFile(): ‪File
46  {
47  return $this->file;
48  }
49 
50  public function ‪getPreviewUrl(): string
51  {
52  return ‪$this->previewUrl;
53  }
54 
55  public function ‪setPreviewUrl(string ‪$previewUrl): void
56  {
57  $this->previewUrl = ‪$previewUrl;
58  }
59 }
‪TYPO3\CMS\Backend\Form\Event\ModifyImageManipulationPreviewUrlEvent
Definition: ModifyImageManipulationPreviewUrlEvent.php:26
‪TYPO3\CMS\Backend\Form\Event
Definition: CustomFileControlsEvent.php:18
‪TYPO3\CMS\Backend\Form\Event\ModifyImageManipulationPreviewUrlEvent\getDatabaseRow
‪getDatabaseRow()
Definition: ModifyImageManipulationPreviewUrlEvent.php:35
‪TYPO3\CMS\Backend\Form\Event\ModifyImageManipulationPreviewUrlEvent\getFile
‪getFile()
Definition: ModifyImageManipulationPreviewUrlEvent.php:45
‪TYPO3\CMS\Backend\Form\Event\ModifyImageManipulationPreviewUrlEvent\getFieldConfiguration
‪getFieldConfiguration()
Definition: ModifyImageManipulationPreviewUrlEvent.php:40
‪TYPO3\CMS\Core\Resource\File
Definition: File.php:26
‪TYPO3\CMS\Backend\Form\Event\ModifyImageManipulationPreviewUrlEvent\$previewUrl
‪string $previewUrl
Definition: ModifyImageManipulationPreviewUrlEvent.php:27
‪TYPO3\CMS\Backend\Form\Event\ModifyImageManipulationPreviewUrlEvent\setPreviewUrl
‪setPreviewUrl(string $previewUrl)
Definition: ModifyImageManipulationPreviewUrlEvent.php:55
‪TYPO3\CMS\Backend\Form\Event\ModifyImageManipulationPreviewUrlEvent\__construct
‪__construct(private readonly array $databaseRow, private readonly array $fieldConfiguration, private readonly File $file,)
Definition: ModifyImageManipulationPreviewUrlEvent.php:29
‪TYPO3\CMS\Backend\Form\Event\ModifyImageManipulationPreviewUrlEvent\getPreviewUrl
‪getPreviewUrl()
Definition: ModifyImageManipulationPreviewUrlEvent.php:50