‪TYPO3CMS  ‪main
AfterPagePreviewUriGeneratedEvent.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 Psr\Http\Message\UriInterface;
22 
28 {
29  public function ‪__construct(
30  private UriInterface $previewUri,
31  private readonly int $pageId,
32  private readonly int $languageId,
33  private readonly array $rootline,
34  private readonly string $section,
35  private readonly array $additionalQueryParameters,
36  private readonly ‪Context $context,
37  private readonly array $options
38  ) {}
39 
40  public function ‪setPreviewUri(UriInterface $previewUri): void
41  {
42  $this->previewUri = $previewUri;
43  }
44 
45  public function ‪getPreviewUri(): UriInterface
46  {
47  return $this->previewUri;
48  }
49 
50  public function ‪getPageId(): int
51  {
52  return $this->pageId;
53  }
54 
55  public function ‪getLanguageId(): int
56  {
57  return $this->languageId;
58  }
59 
60  public function ‪getRootline(): array
61  {
62  return $this->rootline;
63  }
64 
65  public function ‪getSection(): string
66  {
67  return $this->section;
68  }
69 
70  public function ‪getAdditionalQueryParameters(): array
71  {
72  return $this->additionalQueryParameters;
73  }
74 
75  public function ‪getContext(): ‪Context
76  {
77  return $this->context;
78  }
79 
80  public function ‪getOptions(): array
81  {
82  return $this->options;
83  }
84 }
‪TYPO3\CMS\Backend\Routing\Event\AfterPagePreviewUriGeneratedEvent
Definition: AfterPagePreviewUriGeneratedEvent.php:28
‪TYPO3\CMS\Backend\Routing\Event\AfterPagePreviewUriGeneratedEvent\getSection
‪getSection()
Definition: AfterPagePreviewUriGeneratedEvent.php:65
‪TYPO3\CMS\Backend\Routing\Event\AfterPagePreviewUriGeneratedEvent\getAdditionalQueryParameters
‪getAdditionalQueryParameters()
Definition: AfterPagePreviewUriGeneratedEvent.php:70
‪TYPO3\CMS\Core\Context\Context
Definition: Context.php:54
‪TYPO3\CMS\Backend\Routing\Event\AfterPagePreviewUriGeneratedEvent\getPageId
‪getPageId()
Definition: AfterPagePreviewUriGeneratedEvent.php:50
‪TYPO3\CMS\Backend\Routing\Event\AfterPagePreviewUriGeneratedEvent\getLanguageId
‪getLanguageId()
Definition: AfterPagePreviewUriGeneratedEvent.php:55
‪TYPO3\CMS\Backend\Routing\Event\AfterPagePreviewUriGeneratedEvent\getRootline
‪getRootline()
Definition: AfterPagePreviewUriGeneratedEvent.php:60
‪TYPO3\CMS\Backend\Routing\Event
Definition: AfterPagePreviewUriGeneratedEvent.php:18
‪TYPO3\CMS\Backend\Routing\Event\AfterPagePreviewUriGeneratedEvent\__construct
‪__construct(private UriInterface $previewUri, private readonly int $pageId, private readonly int $languageId, private readonly array $rootline, private readonly string $section, private readonly array $additionalQueryParameters, private readonly Context $context, private readonly array $options)
Definition: AfterPagePreviewUriGeneratedEvent.php:29
‪TYPO3\CMS\Backend\Routing\Event\AfterPagePreviewUriGeneratedEvent\setPreviewUri
‪setPreviewUri(UriInterface $previewUri)
Definition: AfterPagePreviewUriGeneratedEvent.php:40
‪TYPO3\CMS\Backend\Routing\Event\AfterPagePreviewUriGeneratedEvent\getContext
‪getContext()
Definition: AfterPagePreviewUriGeneratedEvent.php:75
‪TYPO3\CMS\Backend\Routing\Event\AfterPagePreviewUriGeneratedEvent\getPreviewUri
‪getPreviewUri()
Definition: AfterPagePreviewUriGeneratedEvent.php:45
‪TYPO3\CMS\Backend\Routing\Event\AfterPagePreviewUriGeneratedEvent\getOptions
‪getOptions()
Definition: AfterPagePreviewUriGeneratedEvent.php:80