You are here

public function Twig_Node::removeAttribute in Zircon Profile 8

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

Removes an attribute by name.

Parameters

string $name:

File

vendor/twig/twig/lib/Twig/Node.php, line 168

Class

Twig_Node
Represents a node in the AST.

Code

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