‪TYPO3CMS  ‪main
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 {
47  public function ‪initializeFormElement();
48 
56  public function ‪getUniqueIdentifier(): string;
57 
64  public function ‪getDefaultValue();
65 
72  public function ‪setDefaultValue($defaultValue);
73 
79  public function ‪setProperty(string $key, $value);
80 
84  public function ‪getProperties(): array;
85 
91  public function ‪setRenderingOption(string $key, $value);
92 
99  public function ‪getValidators(): \SplObjectStorage;
100 
105 
111  public function ‪setDataType(string $dataType);
112 
116  public function ‪isRequired(): bool;
117 }
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface\addValidator
‪addValidator(ValidatorInterface $validator)
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface\getProperties
‪getProperties()
‪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:262
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface\isRequired
‪isRequired()
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface\getDefaultValue
‪mixed getDefaultValue()
‪TYPO3\CMS\Form\Domain\Model\FormElements\FormElementInterface\setRenderingOption
‪setRenderingOption(string $key, $value)
‪TYPO3\CMS\Extbase\Validation\Validator\ValidatorInterface
Definition: ValidatorInterface.php:26
‪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