public function Twig_Environment::display

Displays a template.

Parameters

string $name The template name:

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

File

drupal/core/vendor/twig/twig/lib/Twig/Environment.php, line 304

Class

Twig_Environment
Stores the Twig configuration.

Code

public function display($name, array $context = array()) {
  $this
    ->loadTemplate($name)
    ->display($context);
}