Verified Commit 4ef94500 authored by Dave Long's avatar Dave Long
Browse files

fix: #3573953 LogicException in Renderer::render() still mentions renderPlain()

By: prudloff
By: sujal kshatri
(cherry picked from commit 5fa1ac80)
parent fb0632b3
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ public function render(/* array */&$elements, $is_root_call = FALSE) {

    $context = $this->getCurrentRenderContext();
    if (!isset($context)) {
      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.");
      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.");
    }

    if ($is_root_call) {