You are here

public function Twig_Node::removeAttribute in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/Node.php \Twig_Node::removeAttribute()

Removes an attribute.

Parameters

string The attribute name:

File

vendor/Twig/Node.php, line 166

Class

Twig_Node
Represents a node in the AST.

Code

public function removeAttribute($name) {
  unset($this->attributes[$name]);
}