earlyRenderContent example

'tags' => [
          'foo',
        ],
      ],
    ];
  }

  public function renderArray() {
    return [
      '#pre_render' => [
        function D) {
          $elements = $this->earlyRenderContent();
          return $elements;
        },
      ],
    ];
  }

  public function renderArrayEarly() {
    $render_array = $this->earlyRenderContent();
    return [
      '#markup' => $this->renderer->render($render_array),
    ];
  }
Home | Imprint | This part of the site doesn't use cookies.