‪TYPO3CMS  ‪main
BeforeRedirectMatchDomainEvent.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 
28 {
29  private ?array ‪$matchedRedirect = null;
30 
31  public function ‪__construct(
32  private readonly string $domain,
33  private readonly string $path,
34  private readonly string $query,
35  private readonly string $matchDomainName,
36  ) {}
37 
41  public function ‪getDomain(): string
42  {
43  return $this->domain;
44  }
45 
49  public function ‪getPath(): string
50  {
51  return $this->path;
52  }
53 
57  public function ‪getQuery(): string
58  {
59  return $this->query;
60  }
61 
65  public function ‪getMatchDomainName(): string
66  {
67  return $this->matchDomainName;
68  }
69 
73  public function ‪getMatchedRedirect(): ?array
74  {
76  }
77 
81  public function ‪setMatchedRedirect(?array ‪$matchedRedirect): void
82  {
83  $this->matchedRedirect = ‪$matchedRedirect;
84  }
85 }
‪TYPO3\CMS\Redirects\Event\BeforeRedirectMatchDomainEvent\getMatchDomainName
‪string getMatchDomainName()
Definition: BeforeRedirectMatchDomainEvent.php:65
‪TYPO3\CMS\Redirects\Event\BeforeRedirectMatchDomainEvent\getPath
‪string getPath()
Definition: BeforeRedirectMatchDomainEvent.php:49
‪TYPO3\CMS\Redirects\Event\BeforeRedirectMatchDomainEvent\setMatchedRedirect
‪setMatchedRedirect(?array $matchedRedirect)
Definition: BeforeRedirectMatchDomainEvent.php:81
‪TYPO3\CMS\Redirects\Event\BeforeRedirectMatchDomainEvent\$matchedRedirect
‪array $matchedRedirect
Definition: BeforeRedirectMatchDomainEvent.php:29
‪TYPO3\CMS\Redirects\Event\BeforeRedirectMatchDomainEvent\getDomain
‪string getDomain()
Definition: BeforeRedirectMatchDomainEvent.php:41
‪TYPO3\CMS\Redirects\Event\BeforeRedirectMatchDomainEvent\__construct
‪__construct(private readonly string $domain, private readonly string $path, private readonly string $query, private readonly string $matchDomainName,)
Definition: BeforeRedirectMatchDomainEvent.php:31
‪TYPO3\CMS\Redirects\Event
Definition: AfterAutoCreateRedirectHasBeenPersistedEvent.php:18
‪TYPO3\CMS\Redirects\Event\BeforeRedirectMatchDomainEvent\getQuery
‪string getQuery()
Definition: BeforeRedirectMatchDomainEvent.php:57
‪TYPO3\CMS\Redirects\Event\BeforeRedirectMatchDomainEvent\getMatchedRedirect
‪array null getMatchedRedirect()
Definition: BeforeRedirectMatchDomainEvent.php:73
‪TYPO3\CMS\Redirects\Event\BeforeRedirectMatchDomainEvent
Definition: BeforeRedirectMatchDomainEvent.php:28