You are here

public function Twig_Node::setAttribute in Zircon Profile 8

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

Sets an attribute by name to a value.

Parameters

string $name:

mixed $value:

6 calls to Twig_Node::setAttribute()
Twig_Node_Embed::__construct in vendor/twig/twig/lib/Twig/Node/Embed.php
Constructor.
Twig_Node_Expression_Filter::compile in vendor/twig/twig/lib/Twig/Node/Expression/Filter.php
Compiles the node to PHP.
Twig_Node_Expression_Function::compile in vendor/twig/twig/lib/Twig/Node/Expression/Function.php
Compiles the node to PHP.
Twig_Node_Expression_Test::compile in vendor/twig/twig/lib/Twig/Node/Expression/Test.php
Compiles the node to PHP.
Twig_Node_Module::setIndex in vendor/twig/twig/lib/Twig/Node/Module.php

... See full list

File

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

Class

Twig_Node
Represents a node in the AST.

Code

public function setAttribute($name, $value) {
  $this->attributes[$name] = $value;
}