Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RenderElement.php

class RenderElement

Same name in this branch
  1. 11.1.x core/lib/Drupal/Core/Render/Attribute/RenderElement.php \Drupal\Core\Render\Attribute\RenderElement
  2. 11.1.x core/lib/Drupal/Core/Render/Element/RenderElement.php \Drupal\Core\Render\Element\RenderElement

Defines a render element plugin annotation 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.

Hierarchy

  • class \Drupal\Component\Annotation\AnnotationBase implements \Drupal\Component\Annotation\AnnotationInterface
    • class \Drupal\Component\Annotation\PluginID extends \Drupal\Component\Annotation\AnnotationBase
      • class \Drupal\Core\Render\Annotation\RenderElement extends \Drupal\Component\Annotation\PluginID

Expanded class hierarchy of RenderElement

See also

\Drupal\Core\Render\ElementInfoManager

\Drupal\Core\Render\Element\ElementInterface

\Drupal\Core\Render\Element\RenderElementBase

\Drupal\Core\Render\Annotation\FormElement

Plugin API

Related topics

Render API overview
Overview of the Theme system and Render API.
Annotations
Annotations for class discovery and metadata description.

File

core/lib/Drupal/Core/Render/Annotation/RenderElement.php, line 27

Namespace

Drupal\Core\Render\Annotation
View source
class RenderElement extends PluginID {

}
RSS feed
Powered by Drupal