drupal_render_root(&$elements)
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()
File
- core/includes/common.inc, line 857
- Common functions that many Drupal modules will need to reference.
Code
function drupal_render_root(&$elements) { return \Drupal::service('renderer')->renderRoot($elements); }
Please login to continue.