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

Breadcrumb

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

function TemplateWrapper::display

File

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

Class

TemplateWrapper
Exposes a template to userland.

Namespace

Twig

Code

public function display(array $context = []) {
    // using func_get_args() allows to not expose the blocks argument
    // as it should only be used by internal code
    $this->template
        ->display($context, \func_get_args()[1] ?? []);
}
RSS feed
Powered by Drupal