function Renderer::renderInIsolation
Same name in other branches
- 11.x core/lib/Drupal/Core/Render/Renderer.php \Drupal\Core\Render\Renderer::renderInIsolation()
2 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
File
-
core/
lib/ Drupal/ Core/ Render/ Renderer.php, line 163
Class
- Renderer
- Turns a render array into an HTML string.
Namespace
Drupal\Core\RenderCode
public function renderInIsolation(&$elements) {
return $this->executeInRenderContext(new RenderContext(), function () use (&$elements) {
return $this->render($elements, TRUE);
});
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.