public function Twig_Parser::setBlock in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/Parser.php \Twig_Parser::setBlock()
File
- vendor/
Twig/ Parser.php, line 245
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());
}