class FormElement
Same name in this branch
- 10 core/lib/Drupal/Core/Render/Element/FormElement.php \Drupal\Core\Render\Element\FormElement
- 10 core/lib/Drupal/Core/Render/Annotation/FormElement.php \Drupal\Core\Render\Annotation\FormElement
Same name in other branches
- 9 core/lib/Drupal/Core/Render/Element/FormElement.php \Drupal\Core\Render\Element\FormElement
- 9 core/lib/Drupal/Core/Render/Annotation/FormElement.php \Drupal\Core\Render\Annotation\FormElement
- 8.9.x core/lib/Drupal/Core/Render/Element/FormElement.php \Drupal\Core\Render\Element\FormElement
- 8.9.x core/lib/Drupal/Core/Render/Annotation/FormElement.php \Drupal\Core\Render\Annotation\FormElement
- 11.x core/lib/Drupal/Core/Render/Element/FormElement.php \Drupal\Core\Render\Element\FormElement
- 11.x core/lib/Drupal/Core/Render/Annotation/FormElement.php \Drupal\Core\Render\Annotation\FormElement
- 11.x core/lib/Drupal/Core/Render/Attribute/FormElement.php \Drupal\Core\Render\Attribute\FormElement
Defines a form element plugin attribute object.
See \Drupal\Core\Render\Element\FormElementInterface for more information about form element plugins.
Plugin Namespace: Element
For a working example, see \Drupal\Core\Render\Element\Textfield.
Hierarchy
- class \Drupal\Component\Plugin\Attribute\AttributeBase implements \Drupal\Component\Plugin\Attribute\AttributeInterface
- class \Drupal\Component\Plugin\Attribute\Plugin extends \Drupal\Component\Plugin\Attribute\AttributeBase
- class \Drupal\Core\Render\Attribute\RenderElement extends \Drupal\Component\Plugin\Attribute\Plugin
- class \Drupal\Core\Render\Attribute\FormElement extends \Drupal\Core\Render\Attribute\RenderElement
- class \Drupal\Core\Render\Attribute\RenderElement extends \Drupal\Component\Plugin\Attribute\Plugin
- class \Drupal\Component\Plugin\Attribute\Plugin extends \Drupal\Component\Plugin\Attribute\AttributeBase
Expanded class hierarchy of FormElement
See also
\Drupal\Core\Render\ElementInfoManager
\Drupal\Core\Render\Element\FormElementInterface
\Drupal\Core\Render\Element\FormElementBase
\Drupal\Core\Render\Attribute\RenderElement
Related topics
38 files declare their use of FormElement
- Button.php in core/
lib/ Drupal/ Core/ Render/ Element/ Button.php - Checkbox.php in core/
lib/ Drupal/ Core/ Render/ Element/ Checkbox.php - Checkboxes.php in core/
lib/ Drupal/ Core/ Render/ Element/ Checkboxes.php - Color.php in core/
lib/ Drupal/ Core/ Render/ Element/ Color.php - Date.php in core/
lib/ Drupal/ Core/ Render/ Element/ Date.php
File
-
core/
lib/ Drupal/ Core/ Render/ Attribute/ FormElement.php, line 25
Namespace
Drupal\Core\Render\AttributeView source
class FormElement extends RenderElement {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.