public function Twig_Node::getNode in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/Twig/Node.php \Twig_Node::getNode()
Gets a node by name.
Parameters
string The node name:
Return value
Twig_Node A Twig_Node instance
19 calls to Twig_Node::getNode()
- Twig_Node_AutoEscape::compile in vendor/
Twig/ Node/ AutoEscape.php - Compiles the node to PHP.
- Twig_Node_Expression_Call::compileArguments in vendor/
Twig/ Node/ Expression/ Call.php - Twig_Node_Expression_Filter_Default::compile in vendor/
Twig/ Node/ Expression/ Filter/ Default.php - Compiles the node to PHP.
- Twig_Node_Expression_GetAttr::compile in vendor/
Twig/ Node/ Expression/ GetAttr.php - Compiles the node to PHP.
- Twig_Node_Expression_Test_Defined::compile in vendor/
Twig/ Node/ Expression/ Test/ Defined.php - Compiles the node to PHP.
File
- vendor/
Twig/ Node.php, line 190
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];
}