Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

RenderableInterface.php

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

Title Deprecated Summary
RenderableInterface Defines an object which can be rendered by the Render API.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal