You are here

public function Twig_Parser::setBlock in Zircon Profile 8.0

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

File

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

Class

Twig_Parser
Default parser implementation.

Code

public function setBlock($name, Twig_Node_Block $value) {
  $this->blocks[$name] = new Twig_Node_Body(array(
    $value,
  ), array(), $value
    ->getLine());
}