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
- class \Drupal\Component\Annotation\AnnotationBase implements AnnotationInterface
- class \Drupal\Component\Annotation\PluginID
- class \Drupal\Core\Render\Annotation\RenderElement
- class \Drupal\Core\Render\Annotation\FormElement
- class \Drupal\Core\Render\Annotation\RenderElement
- class \Drupal\Component\Annotation\PluginID
See also
\Drupal\Core\Render\ElementInfoManager
\Drupal\Core\Render\Element\FormElementInterface
\Drupal\Core\Render\Element\FormElement
\Drupal\Core\Render\Annotation\RenderElement
Plugin API
Related topics
- Annotations
- Annotations for class discovery and metadata description.
- Render API overview
- Overview of the Theme system and Render API.
File
- core/lib/Drupal/Core/Render/Annotation/FormElement.php, line 25
Namespace
Drupal\Core\Render\Annotation
Members
Name | 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 |
Please login to continue.