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

Breadcrumb

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

function TemplateWrapper::displayBlock

File

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

Class

TemplateWrapper
Exposes a template to userland.

Namespace

Twig

Code

public function displayBlock(string $name, array $context = []) {
    $context += $this->env
        ->getGlobals();
    foreach ($this->template
        ->yieldBlock($name, $context) as $data) {
        echo $data;
    }
}
RSS feed
Powered by Drupal