‪TYPO3CMS  10.4
FormElementInterface.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 
18 /*
19  * Inspired by and partially taken from the Neos.Form package (www.neos.io)
20  */
21 
23 
26 
40 {
41 
48  public function ‪initializeFormElement();
49 
57  public function ‪getUniqueIdentifier(): string;
58 
65  public function ‪getDefaultValue();
66 
73  public function ‪setDefaultValue($defaultValue);
74 
81  public function ‪setProperty(string $key, $value);
82 
88  public function ‪getProperties(): array;
89 
96  public function ‪setRenderingOption(string $key, $value);
97 
104  public function ‪getValidators(): \SplObjectStorage;
105 
112 
118  public function ‪setDataType(string $dataType);
119 
125  public function ‪isRequired(): bool;
126 }
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface\addValidator
‪addValidator(ValidatorInterface $validator)
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface\setDefaultValue
‪setDefaultValue($defaultValue)
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface\setDataType
‪setDataType(string $dataType)
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface\getUniqueIdentifier
‪string getUniqueIdentifier()
‪TYPO3\CMS\Form\Domain\Model\Renderable\RenderableInterface
Definition: RenderableInterface.php:32
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface\initializeFormElement
‪initializeFormElement()
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface
Definition: FormElementInterface.php:40
‪$validator
‪if(isset($args['d'])) $validator
Definition: validateRstFiles.php:218
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface\getDefaultValue
‪mixed getDefaultValue()
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface\getProperties
‪array getProperties()
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface\setRenderingOption
‪setRenderingOption(string $key, $value)
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface\isRequired
‪bool isRequired()
‪TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface
Definition: ValidatorInterface.php:22
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface\getValidators
‪SplObjectStorage< ValidatorInterface > getValidators()
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface\setProperty
‪setProperty(string $key, $value)
‪TYPO3\CMS\Form\Domain\Model\FormElements
Definition: AbstractFormElement.php:22