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.
\Drupal\Core\Render\ElementInfoManager
\Drupal\Core\Render\Element\FormElement
\Drupal\Core\Render\Annotation\FormElement
Name | Modifiers | Type | Description |
---|---|---|---|
ElementInterface::getInfo | public | function | Returns the element properties for this element. |
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. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!Element!FormElementInterface.php/interface/FormElementInterface/8.1.x