1. 8.2.x core/lib/Drupal/Core/Render/Annotation/FormElement.php FormElement
  2. 8.2.x core/lib/Drupal/Core/Render/Element/FormElement.php FormElement
  3. 8.0.x core/lib/Drupal/Core/Render/Element/FormElement.php FormElement
  4. 8.0.x core/lib/Drupal/Core/Render/Annotation/FormElement.php FormElement
  5. 8.1.x core/lib/Drupal/Core/Render/Element/FormElement.php FormElement
  6. 8.1.x core/lib/Drupal/Core/Render/Annotation/FormElement.php FormElement
  7. 8.3.x core/lib/Drupal/Core/Render/Element/FormElement.php FormElement
  8. 8.3.x core/lib/Drupal/Core/Render/Annotation/FormElement.php 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.


Expanded class hierarchy of FormElement

See also





Plugin API

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.

... See full list


core/lib/Drupal/Core/Render/Annotation/FormElement.php, line 25


View source
class FormElement extends RenderElement {



Contains filters are case sensitive
Namesort descending Modifiers Type Description
AnnotationBase::$class protected property The class used for this annotated class.
AnnotationBase::$id public property The annotated class ID.
AnnotationBase::$provider protected property The provider of the annotated class.
AnnotationBase::getClass public function Gets the class of the annotated class. Overrides AnnotationInterface::getClass
AnnotationBase::getProvider public function Gets the name of the provider of the annotated class. Overrides AnnotationInterface::getProvider
AnnotationBase::setClass public function Sets the class of the annotated class. Overrides AnnotationInterface::setClass
AnnotationBase::setProvider public function Sets the name of the provider of the annotated class. Overrides AnnotationInterface::setProvider
PluginID::$value public property The plugin ID.
PluginID::get public function Gets the value of an annotation. Overrides AnnotationInterface::get
PluginID::getId public function Gets the unique ID for this annotated class. Overrides AnnotationBase::getId