public function Twig_Node::getNode in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/twig/twig/lib/Twig/Node.php \Twig_Node::getNode()
Gets a node by name.
Parameters
string $name:
Return value
19 calls to Twig_Node::getNode()
- Twig_Node_AutoEscape::compile in vendor/
twig/ twig/ lib/ Twig/ Node/ AutoEscape.php - Compiles the node to PHP.
- Twig_Node_Expression_Call::compileArguments in vendor/
twig/ twig/ lib/ Twig/ Node/ Expression/ Call.php - Twig_Node_Expression_Filter_Default::compile in vendor/
twig/ twig/ lib/ Twig/ Node/ Expression/ Filter/ Default.php - Compiles the node to PHP.
- Twig_Node_Expression_GetAttr::compile in vendor/
twig/ twig/ lib/ Twig/ Node/ Expression/ GetAttr.php - Compiles the node to PHP.
- Twig_Node_Expression_Test_Defined::compile in vendor/
twig/ twig/ lib/ Twig/ Node/ Expression/ Test/ Defined.php - Compiles the node to PHP.
File
- vendor/
twig/ twig/ lib/ Twig/ Node.php, line 192
Class
- Twig_Node
- Represents a node in the AST.
Code
public function getNode($name) {
if (!array_key_exists($name, $this->nodes)) {
throw new LogicException(sprintf('Node "%s" does not exist for Node "%s".', $name, get_class($this)));
}
return $this->nodes[$name];
}