‪TYPO3CMS  ‪main
BeforeFlexFormDataStructureParsedEvent.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 
34 final class ‪BeforeFlexFormDataStructureParsedEvent implements StoppableEventInterface
35 {
36  private array|string|null ‪$dataStructure = null;
37 
38  public function ‪__construct(
39  private readonly array ‪$identifier,
40  ) {}
41 
47  public function ‪getDataStructure(): array|string|null
48  {
49  return $this->dataStructure ?? null;
50  }
51 
58  public function ‪setDataStructure(array|string ‪$dataStructure): void
59  {
60  $this->dataStructure = ‪$dataStructure;
61  }
62 
63  public function ‪getIdentifier(): array
64  {
65  return ‪$this->identifier;
66  }
67 
68  public function ‪isPropagationStopped(): bool
69  {
70  return isset($this->dataStructure);
71  }
72 }
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureParsedEvent\getIdentifier
‪getIdentifier()
Definition: BeforeFlexFormDataStructureParsedEvent.php:63
‪TYPO3\CMS\Core\Configuration\Event
Definition: AfterFlexFormDataStructureIdentifierInitializedEvent.php:18
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureParsedEvent\getDataStructure
‪getDataStructure()
Definition: BeforeFlexFormDataStructureParsedEvent.php:47
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureParsedEvent
Definition: BeforeFlexFormDataStructureParsedEvent.php:35
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureParsedEvent\__construct
‪__construct(private readonly array $identifier,)
Definition: BeforeFlexFormDataStructureParsedEvent.php:38
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureParsedEvent\setDataStructure
‪setDataStructure(array|string $dataStructure)
Definition: BeforeFlexFormDataStructureParsedEvent.php:58
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureParsedEvent\$dataStructure
‪array string null $dataStructure
Definition: BeforeFlexFormDataStructureParsedEvent.php:36
‪TYPO3\CMS\Core\Configuration\Event\BeforeFlexFormDataStructureParsedEvent\isPropagationStopped
‪isPropagationStopped()
Definition: BeforeFlexFormDataStructureParsedEvent.php:68
‪TYPO3\CMS\Webhooks\Message\$identifier
‪identifier readonly string $identifier
Definition: FileAddedMessage.php:37