You are here

public function MainContentRendererInterface::renderResponse in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Render/MainContent/MainContentRendererInterface.php \Drupal\Core\Render\MainContent\MainContentRendererInterface::renderResponse()

Renders the main content render array into a response.

Parameters

array $main_content: The render array representing the main content.

\Symfony\Component\HttpFoundation\Request $request: The request object, for context.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The route match, for context.

Return value

\Symfony\Component\HttpFoundation\Response The Response in the format that this implementation supports.

4 methods override MainContentRendererInterface::renderResponse()
AjaxRenderer::renderResponse in core/lib/Drupal/Core/Render/MainContent/AjaxRenderer.php
Renders the main content render array into a response.
DialogRenderer::renderResponse in core/lib/Drupal/Core/Render/MainContent/DialogRenderer.php
Renders the main content render array into a response.
HtmlRenderer::renderResponse in core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php
The entire HTML: takes a #type 'page' and wraps it in a #type 'html'.
JsonRenderer::renderResponse in core/modules/system/tests/modules/common_test/src/Render/MainContent/JsonRenderer.php
Renders the main content render array into a response.

File

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

Class

MainContentRendererInterface
The interface for "main content" (

Namespace

Drupal\Core\Render\MainContent

Code

public function renderResponse(array $main_content, Request $request, RouteMatchInterface $route_match);