Provides an interface for form element plugins.
Form element plugins are a subset of render elements, specifically representing HTML elements that take input as part of a form. Form element plugins are discovered via the same mechanism as regular render element plugins. See \Drupal\Core\Render\Element\ElementInterface for general information about render element plugins.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\Core\Render\Element\ElementInterface
- interface \Drupal\Core\Render\Element\FormElementInterface
- interface \Drupal\Core\Render\Element\ElementInterface
See also
\Drupal\Core\Render\ElementInfoManager
\Drupal\Core\Render\Element\FormElement
\Drupal\Core\Render\Annotation\FormElement
Plugin API
Related topics
- Render API overview
- Overview of the Theme system and Render API.
File
- core/lib/Drupal/Core/Render/Element/FormElementInterface.php, line 23
Namespace
Drupal\Core\Render\Element
Members
Name | Modifiers | Type | Description |
---|---|---|---|
ElementInterface::getInfo | public | function | Returns the element properties for this element. Overrides ElementInterface::getInfo |
ElementInterface::setAttributes | public static | function | Sets a form element's class attribute. |
FormElementInterface::valueCallback | public static | function | Determines how user input is mapped to an element's #value property. |
PluginInspectionInterface::getPluginDefinition | public | function | Gets the definition of the plugin implementation. |
PluginInspectionInterface::getPluginId | public | function | Gets the plugin_id of the plugin instance. |
Please login to continue.