/Drupal 8

interface FormElementInterface

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.


See also




Plugin API

Related topics

Render API overview
Overview of the Theme system and Render API.


core/lib/Drupal/Core/Render/Element/FormElementInterface.php, line 23




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.