public function Twig_Template::display

Displays the template with the given context.

Parameters

array $context An array of parameters to pass to the template:

array $blocks An array of blocks to pass to the template:

Overrides Twig_TemplateInterface::display

1 call to Twig_Template::display()
Twig_Template::render in drupal/core/vendor/twig/twig/lib/Twig/Template.php
Renders the template with the given context and returns it as string.

File

drupal/core/vendor/twig/twig/lib/Twig/Template.php, line 237

Class

Twig_Template
Default base class for compiled templates.

Code

public function display(array $context, array $blocks = array()) {
  $this
    ->displayWithErrorHandling($this->env
    ->mergeGlobals($context), $blocks);
}