You are here

public function Twig_Node::setAttribute in Translation template extractor 6.3

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

Sets an attribute.

Parameters

string The attribute name:

mixed The attribute value:

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

... See full list

File

vendor/Twig/Node.php, line 156

Class

Twig_Node
Represents a node in the AST.

Code

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