class FormElement
Same name in this branch
- 8.9.x core/lib/Drupal/Core/Render/Element/FormElement.php \Drupal\Core\Render\Element\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
- 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
- 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
- 10 core/lib/Drupal/Core/Render/Attribute/FormElement.php \Drupal\Core\Render\Attribute\FormElement
Defines a form element plugin annotation 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\Annotation\AnnotationBase implements \Drupal\Component\Annotation\AnnotationInterface
- class \Drupal\Component\Annotation\PluginID extends \Drupal\Component\Annotation\AnnotationBase
- class \Drupal\Core\Render\Annotation\RenderElement extends \Drupal\Component\Annotation\PluginID
- class \Drupal\Core\Render\Annotation\FormElement extends \Drupal\Core\Render\Annotation\RenderElement
- class \Drupal\Core\Render\Annotation\RenderElement extends \Drupal\Component\Annotation\PluginID
- class \Drupal\Component\Annotation\PluginID extends \Drupal\Component\Annotation\AnnotationBase
Expanded class hierarchy of FormElement
See also
\Drupal\Core\Render\ElementInfoManager
\Drupal\Core\Render\Element\FormElementInterface
\Drupal\Core\Render\Element\FormElement
\Drupal\Core\Render\Annotation\RenderElement
Related topics
37 classes are annotated with FormElement
- Button in core/
lib/ Drupal/ Core/ Render/ Element/ Button.php - Provides an action button form element.
- Checkbox in core/
lib/ Drupal/ Core/ Render/ Element/ Checkbox.php - Provides a form element for a single checkbox.
- Checkboxes in core/
lib/ Drupal/ Core/ Render/ Element/ Checkboxes.php - Provides a form element for a set of checkboxes.
- Color in core/
lib/ Drupal/ Core/ Render/ Element/ Color.php - Provides a form element for choosing a color.
- Date in core/
lib/ Drupal/ Core/ Render/ Element/ Date.php - Provides a form element for date selection.
File
-
core/
lib/ Drupal/ Core/ Render/ Annotation/ FormElement.php, line 25
Namespace
Drupal\Core\Render\AnnotationView source
class FormElement extends RenderElement {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.