‪TYPO3CMS  ‪main
BeforeFlexFormDataStructureIdentifierInitializedEvent.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 
43 final class ‪BeforeFlexFormDataStructureIdentifierInitializedEvent implements StoppableEventInterface
44 {
45  private ?array ‪$identifier = null;
46 
53  public function ‪__construct(
54  private readonly array $fieldTca,
55  private readonly string $tableName,
56  private readonly string $fieldName,
57  private readonly array $row,
58  ) {}
59 
64  public function ‪getFieldTca(): array
65  {
66  return $this->fieldTca;
67  }
68 
69  public function ‪getTableName(): string
70  {
71  return $this->tableName;
72  }
73 
74  public function ‪getFieldName(): string
75  {
76  return $this->fieldName;
77  }
78 
82  public function ‪getRow(): array
83  {
84  return $this->row;
85  }
86 
93  public function ‪setIdentifier(array ‪$identifier): void
94  {
95  $this->identifier = ‪$identifier;
96  }
97 
103  public function ‪getIdentifier(): ?array
104  {
105  return $this->identifier ?? null;
106  }
107 
108  public function ‪isPropagationStopped(): bool
109  {
110  return isset($this->identifier);
111  }
112 }
‪TYPO3\CMS\Core\Configuration\Event
Definition: AfterFlexFormDataStructureIdentifierInitializedEvent.php:18
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureIdentifierInitializedEvent\__construct
‪__construct(private readonly array $fieldTca, private readonly string $tableName, private readonly string $fieldName, private readonly array $row,)
Definition: BeforeFlexFormDataStructureIdentifierInitializedEvent.php:53
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureIdentifierInitializedEvent\getRow
‪getRow()
Definition: BeforeFlexFormDataStructureIdentifierInitializedEvent.php:82
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureIdentifierInitializedEvent\getIdentifier
‪getIdentifier()
Definition: BeforeFlexFormDataStructureIdentifierInitializedEvent.php:103
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureIdentifierInitializedEvent\setIdentifier
‪setIdentifier(array $identifier)
Definition: BeforeFlexFormDataStructureIdentifierInitializedEvent.php:93
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureIdentifierInitializedEvent\$identifier
‪array $identifier
Definition: BeforeFlexFormDataStructureIdentifierInitializedEvent.php:45
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureIdentifierInitializedEvent\getFieldName
‪getFieldName()
Definition: BeforeFlexFormDataStructureIdentifierInitializedEvent.php:74
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureIdentifierInitializedEvent
Definition: BeforeFlexFormDataStructureIdentifierInitializedEvent.php:44
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureIdentifierInitializedEvent\getFieldTca
‪getFieldTca()
Definition: BeforeFlexFormDataStructureIdentifierInitializedEvent.php:64
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureIdentifierInitializedEvent\getTableName
‪getTableName()
Definition: BeforeFlexFormDataStructureIdentifierInitializedEvent.php:69
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureIdentifierInitializedEvent\isPropagationStopped
‪isPropagationStopped()
Definition: BeforeFlexFormDataStructureIdentifierInitializedEvent.php:108