Same name in this branch
- 10 core/lib/Drupal/Core/Render/Annotation/FormElement.php \Drupal\Core\Render\Annotation\FormElement
- 10 core/lib/Drupal/Core/Render/Element/FormElement.php \Drupal\Core\Render\Element\FormElement
- 10 core/lib/Drupal/Core/Render/Attribute/FormElement.php \Drupal\Core\Render\Attribute\FormElement
Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/Render/Annotation/FormElement.php \Drupal\Core\Render\Annotation\FormElement
- 9 core/lib/Drupal/Core/Render/Annotation/FormElement.php \Drupal\Core\Render\Annotation\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
- 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
Expanded class hierarchy of FormElement
See also
\Drupal\Core\Render\ElementInfoManager
\Drupal\Core\Render\Element\FormElementInterface
\Drupal\Core\Render\Element\FormElement
\Drupal\Core\Render\Annotation\RenderElement
Related topics
File
- core/
lib/ Drupal/ Core/ Render/ Annotation/ FormElement.php, line 25
Namespace
Drupal\Core\Render\AnnotationView source
class FormElement extends RenderElement {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AnnotationBase:: |
protected | property | The class used for this annotated class. | |
AnnotationBase:: |
public | property | The annotated class ID. | 1 |
AnnotationBase:: |
protected | property | The provider of the annotated class. | |
AnnotationBase:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
AnnotationBase:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
AnnotationBase:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
AnnotationBase:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
PluginID:: |
public | property | The plugin ID. | |
PluginID:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
|
PluginID:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationBase:: |