RenderableInterface.php 297 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?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();

}