core/includes/common.inc | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/core/includes/common.inc b/core/includes/common.inc index beb28b7..ac02bc0 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -22,7 +22,6 @@ use Drupal\Component\Utility\UrlHelper; use Drupal\Core\Cache\Cache; use Drupal\Core\Language\LanguageInterface; -use Drupal\Core\Render\RenderStackFrame; use Drupal\Core\Site\Settings; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; @@ -2363,31 +2362,14 @@ function drupal_pre_render_links($element) { } /** - * Renders final HTML given a structured array tree. - * - * Calls drupal_render() in such a way that #post_render_cache callbacks are - * applied. - * - * Should therefore only be used in occasions where the final rendering is - * happening, just before sending a Response: - * - system internals that are responsible for rendering the final HTML - * - render arrays for non-HTML responses, such as feeds - * - * @param array $elements - * The structured array describing the data to be rendered. - * - * @return string - * The rendered HTML. - * - * @see drupal_render() - * @deprecated as of Drupal 8.0.x. Use the 'renderer' service instead. + * @deprecated as of Drupal 9.0.0. Use the 'renderer' service instead. */ function drupal_render_root(&$elements) { return \Drupal::service('renderer')->renderRoot($elements); } /** - * @deprecated as of Drupal 8.0.x. Use the 'renderer' service instead. + * @deprecated as of Drupal 9.0.0. Use the 'renderer' service instead. */ function drupal_render(&$elements, $is_recursive_call = FALSE) { return \Drupal::service('renderer')->render($elements, $is_recursive_call);