function drupal_render_root in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/includes/common.inc \drupal_render_root()
Renders final HTML given a structured array tree.
Deprecated
as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Use the 'renderer' service instead.
See also
\Drupal\Core\Render\RendererInterface::renderRoot()
7 calls to drupal_render_root()
- AjaxRenderer::drupalRenderRoot in core/
lib/ Drupal/ Core/ Render/ MainContent/ AjaxRenderer.php - Wraps drupal_render_root().
- DialogRenderer::renderResponse in core/
lib/ Drupal/ Core/ Render/ MainContent/ DialogRenderer.php - Renders the main content render array into a response.
- Feed::preview in core/
modules/ views/ src/ Plugin/ views/ display/ Feed.php - Renders the display for the purposes of a live preview.
- FilterAPITest::testProcessedTextElement in core/
modules/ filter/ src/ Tests/ FilterAPITest.php - Tests the 'processed_text' element.
- ModalRenderer::renderResponse in core/
lib/ Drupal/ Core/ Render/ MainContent/ ModalRenderer.php - Renders the main content render array into a response.
File
- core/
includes/ common.inc, line 858 - Common functions that many Drupal modules will need to reference.
Code
function drupal_render_root(&$elements) {
return \Drupal::service('renderer')
->renderRoot($elements);
}