public function Twig_Node::removeNode

Removes a node by name.

Parameters

string The node name:

File

drupal/core/vendor/twig/twig/lib/Twig/Node.php, line 213

Class

Twig_Node
Represents a node in the AST.

Code

public function removeNode($name) {
  unset($this->nodes[$name]);
}