‪TYPO3CMS  ‪main
AfterVideoPreviewFetchedEvent.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 
22 
27 {
28  public function ‪__construct(
29  private readonly ‪File $file,
30  private readonly ‪OnlineMediaHelperInterface $onlineMediaHelper,
31  private string $previewImageFilename
32  ) {}
33 
34  public function ‪getFile(): ‪File
35  {
36  return $this->file;
37  }
38 
39  public function ‪getOnlineMediaId(): string
40  {
41  return $this->onlineMediaHelper->getOnlineMediaId($this->file);
42  }
43 
44  public function ‪getPreviewImageFilename(): string
45  {
46  return $this->previewImageFilename;
47  }
48 
49  public function ‪setPreviewImageFilename(string $previewImageFilename): void
50  {
51  $this->previewImageFilename = $previewImageFilename;
52  }
53 }
‪TYPO3\CMS\Core\Resource\OnlineMedia\Event\AfterVideoPreviewFetchedEvent\__construct
‪__construct(private readonly File $file, private readonly OnlineMediaHelperInterface $onlineMediaHelper, private string $previewImageFilename)
Definition: AfterVideoPreviewFetchedEvent.php:28
‪TYPO3\CMS\Core\Resource\OnlineMedia\Event
Definition: AfterVideoPreviewFetchedEvent.php:18
‪TYPO3\CMS\Core\Resource\OnlineMedia\Event\AfterVideoPreviewFetchedEvent\setPreviewImageFilename
‪setPreviewImageFilename(string $previewImageFilename)
Definition: AfterVideoPreviewFetchedEvent.php:49
‪TYPO3\CMS\Core\Resource\OnlineMedia\Event\AfterVideoPreviewFetchedEvent
Definition: AfterVideoPreviewFetchedEvent.php:27
‪TYPO3\CMS\Core\Resource\File
Definition: File.php:26
‪TYPO3\CMS\Core\Resource\OnlineMedia\Event\AfterVideoPreviewFetchedEvent\getPreviewImageFilename
‪getPreviewImageFilename()
Definition: AfterVideoPreviewFetchedEvent.php:44
‪TYPO3\CMS\Core\Resource\OnlineMedia\Helpers\OnlineMediaHelperInterface
Definition: OnlineMediaHelperInterface.php:25
‪TYPO3\CMS\Core\Resource\OnlineMedia\Event\AfterVideoPreviewFetchedEvent\getFile
‪getFile()
Definition: AfterVideoPreviewFetchedEvent.php:34
‪TYPO3\CMS\Core\Resource\OnlineMedia\Event\AfterVideoPreviewFetchedEvent\getOnlineMediaId
‪getOnlineMediaId()
Definition: AfterVideoPreviewFetchedEvent.php:39