function Renderer::renderInIsolation
Same name in other branches
- 10 core/lib/Drupal/Core/Render/Renderer.php \Drupal\Core\Render\Renderer::renderInIsolation()
Overrides RendererInterface::renderInIsolation
3 calls to Renderer::renderInIsolation()
- Renderer::doRenderPlaceholder in core/
lib/ Drupal/ Core/ Render/ Renderer.php - Renders a placeholder into markup.
- Renderer::renderPlain in core/
lib/ Drupal/ Core/ Render/ Renderer.php - Renderer::renderRoot in core/
lib/ Drupal/ Core/ Render/ Renderer.php - Renders final HTML given a structured array tree.
File
-
core/
lib/ Drupal/ Core/ Render/ Renderer.php, line 138
Class
- Renderer
- Turns a render array into an HTML string.
Namespace
Drupal\Core\RenderCode
public function renderInIsolation(&$elements) {
$context = new RenderContext();
return Markup::create($this->executeInRenderContext($context, function () use (&$elements, $context) {
return $this->doRenderRoot($elements, $context);
}));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.