Skip to content

GetAttrNode ​

Type
Class
Namespace
craft\web\twig\nodes
Inherits
craft\web\twig\nodes\GetAttrNode » Twig\Node\Expression\GetAttrExpression
Since
3.0.0

GetAttrNode is an alternative to \Twig\Node\Expression\GetAttrExpression, which sends attribute calls to TemplateHelper::attribute() rather than CoreExtension::getAttribute().

View source

Public Methods ​

MethodDescription
__construct()
compile()

__construct() ​

View source

Arguments ​

  • $nodes (array) – An array of named nodes
  • $attributes (array) – An array of attributes (should not be nodes)
  • $lineno (integer) – The line number
  • $tag (string, null) – The tag name associated with the Node

compile() ​

View source

Arguments ​

  • $compiler