core/lib/Drupal/Core/Render/Renderer.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/lib/Drupal/Core/Render/Renderer.php b/core/lib/Drupal/Core/Render/Renderer.php index dfa1f2e..3fd99f2 100644 --- a/core/lib/Drupal/Core/Render/Renderer.php +++ b/core/lib/Drupal/Core/Render/Renderer.php @@ -210,7 +210,6 @@ protected function doRender(&$elements, $is_root_call = FALSE) { } if (!isset(static::$context)) { - var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 10)); throw new \LogicException("Render context is empty, because render() was called outside of a renderRoot() or renderPlain() call. Use renderPlain()/renderRoot() or #lazy_builder/#pre_render instead."); } static::$context->push(new BubbleableMetadata()); @@ -506,7 +505,6 @@ protected function doRender(&$elements, $is_root_call = FALSE) { // that is handled earlier in Renderer::render(). if ($is_root_call) { $this->replacePlaceholders($elements); - // @todo remove in the issue where we remove the $is_root_call param from ::render() if (static::$context->count() !== 1) { throw new \LogicException('A stray drupal_render() invocation with $is_root_call = TRUE is causing bubbling of attached assets to break.'); }