Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. TemplateWrapper.php

function TemplateWrapper::renderBlock

File

vendor/twig/twig/src/TemplateWrapper.php, line 58

Class

TemplateWrapper
Exposes a template to userland.

Namespace

Twig

Code

public function renderBlock(string $name, array $context = []) : string {
    return $this->template
        ->renderBlock($name, $context + $this->env
        ->getGlobals());
}
RSS feed
Powered by Drupal