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

Breadcrumb

  1. Drupal Core 11.1.x
  2. RenderableInterface.php

interface RenderableInterface

Defines an object which can be rendered by the Render API.

Hierarchy

  • interface \Drupal\Core\Render\RenderableInterface

Expanded class hierarchy of RenderableInterface

All classes that implement RenderableInterface

4 files declare their use of RenderableInterface
Breadcrumb.php in core/lib/Drupal/Core/Breadcrumb/Breadcrumb.php
FormattedDateDiff.php in core/lib/Drupal/Core/Datetime/FormattedDateDiff.php
Link.php in core/lib/Drupal/Core/Link.php
TwigExtension.php in core/lib/Drupal/Core/Template/TwigExtension.php

File

core/lib/Drupal/Core/Render/RenderableInterface.php, line 8

Namespace

Drupal\Core\Render
View source
interface RenderableInterface {
    
    /**
     * Returns a render array representation of the object.
     *
     * @return mixed[]
     *   A render array.
     */
    public function toRenderable();

}

Members

Title Sort descending Modifiers Object type Summary Overrides
RenderableInterface::toRenderable public function Returns a render array representation of the object. 3

API Navigation

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