You are here

public function Twig_Template::display in Translation template extractor 7.3

Same name and namespace in other branches
  1. 6.3 vendor/Twig/Template.php \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 vendor/Twig/Template.php
Renders the template with the given context and returns it as string.

File

vendor/Twig/Template.php, line 353

Class

Twig_Template
Default base class for compiled templates.

Code

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