class FormElement

Same name in this branch
  1. 11.x core/lib/Drupal/Core/Render/Element/FormElement.php \Drupal\Core\Render\Element\FormElement
  2. 11.x core/lib/Drupal/Core/Render/Attribute/FormElement.php \Drupal\Core\Render\Attribute\FormElement
Same name in other branches
  1. 9 core/lib/Drupal/Core/Render/Element/FormElement.php \Drupal\Core\Render\Element\FormElement
  2. 9 core/lib/Drupal/Core/Render/Annotation/FormElement.php \Drupal\Core\Render\Annotation\FormElement
  3. 8.9.x core/lib/Drupal/Core/Render/Element/FormElement.php \Drupal\Core\Render\Element\FormElement
  4. 8.9.x core/lib/Drupal/Core/Render/Annotation/FormElement.php \Drupal\Core\Render\Annotation\FormElement
  5. 10 core/lib/Drupal/Core/Render/Element/FormElement.php \Drupal\Core\Render\Element\FormElement
  6. 10 core/lib/Drupal/Core/Render/Annotation/FormElement.php \Drupal\Core\Render\Annotation\FormElement
  7. 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

Expanded class hierarchy of FormElement

See also

\Drupal\Core\Render\ElementInfoManager

\Drupal\Core\Render\Element\FormElementInterface

\Drupal\Core\Render\Element\FormElementBase

\Drupal\Core\Render\Annotation\RenderElement

Plugin API

Related topics

File

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

Namespace

Drupal\Core\Render\Annotation
View source
class FormElement extends RenderElement {

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.