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
- interface \Drupal\Core\Render\MainContent\MainContentRendererInterface
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. |
Please login to continue.