W3cubDocs

/Drupal 8

public function RenderableInterface::toRenderable

public RenderableInterface::toRenderable()

Returns a render array representation of the object.

Return value

mixed[] A render array.

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();

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!RenderableInterface.php/function/RenderableInterface::toRenderable/8.1.x