class RenderElement
Same name in this branch
- 10 core/lib/Drupal/Core/Render/Element/RenderElement.php \Drupal\Core\Render\Element\RenderElement
- 10 core/lib/Drupal/Core/Render/Annotation/RenderElement.php \Drupal\Core\Render\Annotation\RenderElement
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Render/Element/RenderElement.php \Drupal\Core\Render\Element\RenderElement
- 9 core/lib/Drupal/Core/Render/Annotation/RenderElement.php \Drupal\Core\Render\Annotation\RenderElement
- 8.9.x core/lib/Drupal/Core/Render/Element/RenderElement.php \Drupal\Core\Render\Element\RenderElement
- 8.9.x core/lib/Drupal/Core/Render/Annotation/RenderElement.php \Drupal\Core\Render\Annotation\RenderElement
- 11.x core/lib/Drupal/Core/Render/Element/RenderElement.php \Drupal\Core\Render\Element\RenderElement
- 11.x core/lib/Drupal/Core/Render/Annotation/RenderElement.php \Drupal\Core\Render\Annotation\RenderElement
- 11.x core/lib/Drupal/Core/Render/Attribute/RenderElement.php \Drupal\Core\Render\Attribute\RenderElement
Defines a Render element plugin attribute object.
See \Drupal\Core\Render\Element\ElementInterface for more information about render element plugins.
Plugin Namespace: Element
For a working example, see \Drupal\Core\Render\Element\Link.
Attributes
#[\Attribute(\Attribute::TARGET_CLASS)]
Hierarchy
- class \Drupal\Component\Plugin\Attribute\AttributeBase extends \Drupal\Component\Plugin\Attribute\AttributeInterface
- class \Drupal\Component\Plugin\Attribute\Plugin implements \Drupal\Component\Plugin\Attribute\AttributeBase
- class \Drupal\Core\Render\Attribute\RenderElement implements \Drupal\Component\Plugin\Attribute\Plugin
- class \Drupal\Component\Plugin\Attribute\Plugin implements \Drupal\Component\Plugin\Attribute\AttributeBase
Expanded class hierarchy of RenderElement
See also
\Drupal\Core\Render\ElementInfoManager
\Drupal\Core\Render\Element\ElementInterface
\Drupal\Core\Render\Element\RenderElementBase
\Drupal\Core\Render\Attribute\FormElement
Related topics
37 files declare their use of RenderElement
- Actions.php in core/
lib/ Drupal/ Core/ Render/ Element/ Actions.php - Ajax.php in core/
lib/ Drupal/ Core/ Render/ Element/ Ajax.php - BreakLockLink.php in core/
lib/ Drupal/ Core/ TempStore/ Element/ BreakLockLink.php - ComponentElement.php in core/
lib/ Drupal/ Core/ Render/ Element/ ComponentElement.php - Container.php in core/
lib/ Drupal/ Core/ Render/ Element/ Container.php
File
-
core/
lib/ Drupal/ Core/ Render/ Attribute/ RenderElement.php, line 27
Namespace
Drupal\Core\Render\AttributeView source
class RenderElement extends Plugin {
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
AttributeBase::$class | protected | property | The class used for this attribute class. | ||
AttributeBase::$provider | protected | property | The provider of the attribute class. | ||
AttributeBase::get | public | function | Gets the value of an attribute. | Overrides AttributeInterface::get | 6 |
AttributeBase::getClass | public | function | Gets the class of the attribute class. | Overrides AttributeInterface::getClass | 1 |
AttributeBase::getId | public | function | Gets the unique ID for this attribute class. | Overrides AttributeInterface::getId | |
AttributeBase::getProvider | public | function | Gets the name of the provider of the attribute class. | Overrides AttributeInterface::getProvider | |
AttributeBase::setClass | public | function | Sets the class of the attributed class. | Overrides AttributeInterface::setClass | 1 |
AttributeBase::setProvider | public | function | Sets the name of the provider of the attribute class. | Overrides AttributeInterface::setProvider | |
Plugin::__construct | public | function | Constructs a plugin attribute object. | Overrides AttributeBase::__construct | 48 |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.