public function Twig_Template::display in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/twig/twig/lib/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/ twig/ lib/ Twig/ Template.php - Renders the template with the given context and returns it as string.
File
- vendor/
twig/ twig/ lib/ 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));
}