‪TYPO3CMS  ‪main
IsTableExcludedFromReferenceIndexEvent.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\EventDispatcher\StoppableEventInterface;
21 
27 final class ‪IsTableExcludedFromReferenceIndexEvent implements StoppableEventInterface
28 {
29  private bool ‪$isExcluded = false;
30 
31  public function ‪__construct(private readonly string $table) {}
32 
33  public function ‪getTable(): string
34  {
35  return $this->table;
36  }
37 
38  public function ‪markAsExcluded()
39  {
40  $this->isExcluded = true;
41  }
42 
43  public function ‪isTableExcluded(): bool
44  {
45  return ‪$this->isExcluded;
46  }
47 
48  public function ‪isPropagationStopped(): bool
49  {
50  return $this->‪isTableExcluded();
51  }
52 }
‪TYPO3\CMS\Core\DataHandling\Event\IsTableExcludedFromReferenceIndexEvent
Definition: IsTableExcludedFromReferenceIndexEvent.php:28
‪TYPO3\CMS\Core\DataHandling\Event
Definition: AppendLinkHandlerElementsEvent.php:18
‪TYPO3\CMS\Core\DataHandling\Event\IsTableExcludedFromReferenceIndexEvent\getTable
‪getTable()
Definition: IsTableExcludedFromReferenceIndexEvent.php:33
‪TYPO3\CMS\Core\DataHandling\Event\IsTableExcludedFromReferenceIndexEvent\__construct
‪__construct(private readonly string $table)
Definition: IsTableExcludedFromReferenceIndexEvent.php:31
‪TYPO3\CMS\Core\DataHandling\Event\IsTableExcludedFromReferenceIndexEvent\isPropagationStopped
‪isPropagationStopped()
Definition: IsTableExcludedFromReferenceIndexEvent.php:48
‪TYPO3\CMS\Core\DataHandling\Event\IsTableExcludedFromReferenceIndexEvent\isTableExcluded
‪isTableExcluded()
Definition: IsTableExcludedFromReferenceIndexEvent.php:43
‪TYPO3\CMS\Core\DataHandling\Event\IsTableExcludedFromReferenceIndexEvent\$isExcluded
‪bool $isExcluded
Definition: IsTableExcludedFromReferenceIndexEvent.php:29
‪TYPO3\CMS\Core\DataHandling\Event\IsTableExcludedFromReferenceIndexEvent\markAsExcluded
‪markAsExcluded()
Definition: IsTableExcludedFromReferenceIndexEvent.php:38