‪TYPO3CMS  ‪main
ModifyPageLinkConfigurationEvent.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 
27 {
28  protected bool ‪$pageWasModified = false;
29 
30  public function ‪__construct(
31  private array $configuration,
32  private readonly array $linkDetails,
33  private array $page,
34  private array $queryParameters,
35  private string $fragment
36  ) {}
37 
38  public function ‪getConfiguration(): array
39  {
40  return $this->configuration;
41  }
42 
43  public function ‪setConfiguration(array $configuration): void
44  {
45  $this->configuration = $configuration;
46  }
47 
48  public function ‪getLinkDetails(): array
49  {
50  return $this->linkDetails;
51  }
52 
53  public function ‪getPage(): array
54  {
55  return $this->page;
56  }
57 
58  public function ‪setPage(array $page): void
59  {
60  $this->page = $page;
61  $this->‪pageWasModified = true;
62  }
63 
64  public function ‪getQueryParameters(): array
65  {
66  return $this->queryParameters;
67  }
68 
69  public function ‪setQueryParameters(array $queryParameters): void
70  {
71  $this->queryParameters = $queryParameters;
72  }
73 
74  public function ‪getFragment(): string
75  {
76  return $this->fragment;
77  }
78 
79  public function ‪setFragment(string $fragment): void
80  {
81  $this->fragment = $fragment;
82  }
83 
84  public function ‪pageWasModified(): bool
85  {
87  }
88 }
‪TYPO3\CMS\Frontend\Event
Definition: AfterCacheableContentIsGeneratedEvent.php:18