W3cubDocs

/Drupal 8

interface MainContentRendererInterface

The interface for "main content" (

_controller 

) renderers.

Classes implementing this interface are able to render the main content (as received from controllers) into a response of a certain format (HTML, JSON …) and/or in a certain decorated manner (e.g. in the case of the default HTML main content renderer: with a page display variant applied).

Hierarchy

File

core/lib/Drupal/Core/Render/MainContent/MainContentRendererInterface.php, line 16

Namespace

Drupal\Core\Render\MainContent

Members

Name Modifiers Type Description
MainContentRendererInterface::renderResponse public function Renders the main content render array into a response.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Render!MainContent!MainContentRendererInterface.php/interface/MainContentRendererInterface/8.1.x