‪TYPO3CMS  ‪main
ModifyUrlForCanonicalTagEvent.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\ServerRequestInterface;
23 
28 {
29  public function ‪__construct(
30  private readonly ServerRequestInterface $request,
31  private readonly ‪Page $page,
32  private string ‪$url,
33  private readonly ?‪CanonicalGenerationDisabledException $canonicalGenerationDisabledException
34  ) {}
35 
36  public function ‪getUrl(): string
37  {
38  return ‪$this->url;
39  }
40 
41  public function ‪setUrl(string ‪$url): void
42  {
43  $this->url = ‪$url;
44  }
45 
46  public function ‪getRequest(): ServerRequestInterface
47  {
48  return $this->request;
49  }
50 
51  public function ‪getPage(): ‪Page
52  {
53  return $this->page;
54  }
55 
57  {
58  return $this->canonicalGenerationDisabledException;
59  }
60 }
‪TYPO3\CMS\Core\Domain\Page
Definition: Page.php:24
‪TYPO3\CMS\Seo\Event\ModifyUrlForCanonicalTagEvent\getUrl
‪getUrl()
Definition: ModifyUrlForCanonicalTagEvent.php:36
‪TYPO3\CMS\Seo\Event
Definition: ModifyUrlForCanonicalTagEvent.php:18
‪TYPO3\CMS\Seo\Event\ModifyUrlForCanonicalTagEvent\getCanonicalGenerationDisabledException
‪getCanonicalGenerationDisabledException()
Definition: ModifyUrlForCanonicalTagEvent.php:56
‪TYPO3\CMS\Seo\Event\ModifyUrlForCanonicalTagEvent\getRequest
‪getRequest()
Definition: ModifyUrlForCanonicalTagEvent.php:46
‪TYPO3\CMS\Seo\Event\ModifyUrlForCanonicalTagEvent\__construct
‪__construct(private readonly ServerRequestInterface $request, private readonly Page $page, private string $url, private readonly ?CanonicalGenerationDisabledException $canonicalGenerationDisabledException)
Definition: ModifyUrlForCanonicalTagEvent.php:29
‪TYPO3\CMS\Seo\Event\ModifyUrlForCanonicalTagEvent\getPage
‪getPage()
Definition: ModifyUrlForCanonicalTagEvent.php:51
‪TYPO3\CMS\Webhooks\Message\$url
‪identifier readonly UriInterface $url
Definition: LoginErrorOccurredMessage.php:36
‪TYPO3\CMS\Seo\Exception\CanonicalGenerationDisabledException
Definition: CanonicalGenerationDisabledException.php:25
‪TYPO3\CMS\Seo\Event\ModifyUrlForCanonicalTagEvent
Definition: ModifyUrlForCanonicalTagEvent.php:28
‪TYPO3\CMS\Seo\Event\ModifyUrlForCanonicalTagEvent\setUrl
‪setUrl(string $url)
Definition: ModifyUrlForCanonicalTagEvent.php:41