You are here

public function Twig_Parser::embedTemplate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Parser.php \Twig_Parser::embedTemplate()

File

vendor/twig/twig/lib/Twig/Parser.php, line 286

Class

Twig_Parser
Default parser implementation.

Code

public function embedTemplate(Twig_Node_Module $template) {
  $template
    ->setIndex(mt_rand());
  $this->embeddedTemplates[] = $template;
}