Unverified Commit 6c7f1ffe authored by Alex Pott's avatar Alex Pott
Browse files

task: #3633353 Remove redundant render context lookup in Renderer::doRender()

By: pancho
By: smustgrave
parent 48f2609f
Loading
Loading
Loading
Loading
+0 −4
Changes for core/lib/Drupal/Core/Render/Renderer.php: 0 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -293,10 +293,6 @@ protected function doRender(array &$elements, RenderContext $context): string|Ma
      return '';
    }

    $context = $this->getCurrentRenderContext();
    if (!isset($context)) {
      throw new \LogicException("Render context is empty, because render() was called outside of a renderRoot() or renderInIsolation() call. Use renderInIsolation()/renderRoot() or #lazy_builder/#pre_render instead.");
    }
    $context->push(new BubbleableMetadata());

    // Set the bubbleable rendering metadata that has configurable defaults if