‪TYPO3CMS  10.4
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 {
32  private ‪$table;
33 
37  private ‪$isExcluded = false;
38 
39  public function ‪__construct(string ‪$table)
40  {
41  $this->table = ‪$table;
42  }
43 
44  public function ‪getTable(): string
45  {
46  return ‪$this->table;
47  }
48 
49  public function ‪markAsExcluded()
50  {
51  $this->isExcluded = true;
52  }
53 
54  public function ‪isTableExcluded(): bool
55  {
56  return ‪$this->isExcluded;
57  }
58 
59  public function ‪isPropagationStopped(): bool
60  {
61  return $this->‪isTableExcluded();
62  }
63 }
‪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:42
‪TYPO3\CMS\Core\DataHandling\Event\IsTableExcludedFromReferenceIndexEvent\isPropagationStopped
‪isPropagationStopped()
Definition: IsTableExcludedFromReferenceIndexEvent.php:57
‪TYPO3\CMS\Core\DataHandling\Event\IsTableExcludedFromReferenceIndexEvent\isTableExcluded
‪isTableExcluded()
Definition: IsTableExcludedFromReferenceIndexEvent.php:52
‪TYPO3\CMS\Core\DataHandling\Event\IsTableExcludedFromReferenceIndexEvent\$isExcluded
‪bool $isExcluded
Definition: IsTableExcludedFromReferenceIndexEvent.php:35
‪TYPO3\CMS\Core\DataHandling\Event\IsTableExcludedFromReferenceIndexEvent\markAsExcluded
‪markAsExcluded()
Definition: IsTableExcludedFromReferenceIndexEvent.php:47
‪TYPO3\CMS\Core\DataHandling\Event\IsTableExcludedFromReferenceIndexEvent\__construct
‪__construct(string $table)
Definition: IsTableExcludedFromReferenceIndexEvent.php:37
‪TYPO3\CMS\Core\DataHandling\Event\IsTableExcludedFromReferenceIndexEvent\$table
‪string $table
Definition: IsTableExcludedFromReferenceIndexEvent.php:31