Cms\Twig\GetAttrNode

Overview

GetAttrNode compiles a custom get attribute node. Carbon copy of the parent class with custom get attribute logic.

Extends
  • Twig\Node\Expression\GetAttrExpression
  • Twig\Node\Expression\AbstractExpression
  • Twig\Node\Node
Implements
  • Traversable
  • Stringable
  • IteratorAggregate
  • Countable

Protected Properties

There are no protected properties in the class.

Show inherited protected properties

Inherited Protected Properties

  • $nodes - (defined in Twig\Node\Node)
  • $attributes - (defined in Twig\Node\Node)
  • $lineno - (defined in Twig\Node\Node)
  • $tag - (defined in Twig\Node\Node)

Public Methods

public __construct()

public __construct($nodes = [], $attributes = [], $lineno = 0, $tag = null): void

public compile()

public compile($compiler): void 

public static customGetAttribute()

public static customGetAttribute(
    $env,
    $source,
    $object,
    $item,
    $arguments = [],
    $type = 'any',
    $isDefinedTest = false,
    $ignoreStrictCheck = false,
    $sandboxed = false,
    $lineno = -1
): void

customGetAttribute inherits the logic of twig_get_attribute

Show inherited public methods

Inherited Public Methods

  • __toString() - (defined in Twig\Node\Node)
  • count() - (defined in Twig\Node\Node)
  • getAttribute() - (defined in Twig\Node\Node)
  • getIterator() - (defined in Twig\Node\Node)
  • getNode() - (defined in Twig\Node\Node)
  • getNodeTag() - (defined in Twig\Node\Node)
  • getSourceContext() - (defined in Twig\Node\Node)
  • getTemplateLine() - (defined in Twig\Node\Node)
  • getTemplateName() - (defined in Twig\Node\Node)
  • hasAttribute() - (defined in Twig\Node\Node)
  • hasNode() - (defined in Twig\Node\Node)
  • removeAttribute() - (defined in Twig\Node\Node)
  • removeNode() - (defined in Twig\Node\Node)
  • setAttribute() - (defined in Twig\Node\Node)
  • setNode() - (defined in Twig\Node\Node)
  • setSourceContext() - (defined in Twig\Node\Node)