You are here

RenderableInterface.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/lib/Drupal/Core/Render/RenderableInterface.php

Namespace

Drupal\Core\Render

File

core/lib/Drupal/Core/Render/RenderableInterface.php
View source
<?php

/**
 * @file
 * Contains \Drupal\Core\Render\RenderableInterface.
 */
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.