You are here

RenderableInterface.php in Drupal 10

Namespace

Drupal\Core\Render

File

core/lib/Drupal/Core/Render/RenderableInterface.php
View 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

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