RenderableInterface.php in Drupal 10
Same filename and directory in other branches
Namespace
Drupal\Core\RenderFile
core/lib/Drupal/Core/Render/RenderableInterface.phpView source
<?php
namespace Drupal\Core\Render;
/**
* Defines an object which can be rendered by the Render API.
*/
interface RenderableInterface {
/**
* Returns a render array representation of the object.
*
* @return mixed[]
* A render array.
*/
public function toRenderable();
}
Interfaces
Name | Description |
---|---|
RenderableInterface | Defines an object which can be rendered by the Render API. |