function MainContentRendererInterface::renderResponse
Same name in other branches
- 9 core/lib/Drupal/Core/Render/MainContent/MainContentRendererInterface.php \Drupal\Core\Render\MainContent\MainContentRendererInterface::renderResponse()
- 8.9.x core/lib/Drupal/Core/Render/MainContent/MainContentRendererInterface.php \Drupal\Core\Render\MainContent\MainContentRendererInterface::renderResponse()
- 10 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\MainContentCode
public function renderResponse(array $main_content, Request $request, RouteMatchInterface $route_match);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.