protected function AjaxRenderer::drupalRenderRoot in Drupal 8
Wraps \Drupal\Core\Render\RendererInterface::renderRoot().
Deprecated
in drupal:8.7.0 and is removed from drupal:9.0.0. Use $this->renderer->renderRoot() instead.
See also
https://www.drupal.org/node/2912696
File
- core/
lib/ Drupal/ Core/ Render/ MainContent/ AjaxRenderer.php, line 93
Class
- AjaxRenderer
- Default main content renderer for Ajax requests.
Namespace
Drupal\Core\Render\MainContentCode
protected function drupalRenderRoot(&$elements) {
@trigger_error('\\Drupal\\Core\\Render\\MainContent\\AjaxRenderer::drupalRenderRoot() is deprecated in Drupal 8.7.x and will be removed before Drupal 9.0.0. Use $this->renderer->renderRoot() instead. See https://www.drupal.org/node/2912696', E_USER_DEPRECATED);
return $this->renderer
->renderRoot($elements);
}