You are here

public function RenderableInterface::toRenderable in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Render/RenderableInterface.php \Drupal\Core\Render\RenderableInterface::toRenderable()
  2. 9 core/lib/Drupal/Core/Render/RenderableInterface.php \Drupal\Core\Render\RenderableInterface::toRenderable()

Returns a render array representation of the object.

Return value

mixed[] A render array.

1 method overrides RenderableInterface::toRenderable()
ExampleRenderable::toRenderable in core/modules/system/tests/modules/twig_theme_test/src/ExampleRenderable.php
Returns a render array representation of the object.

File

core/lib/Drupal/Core/Render/RenderableInterface.php, line 16

Class

RenderableInterface
Defines an object which can be rendered by the Render API.

Namespace

Drupal\Core\Render

Code

public function toRenderable();