Contents

System\Twig\Node\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
  • Twig\Node\Expression\SupportDefinedTestInterface
  • Twig\Node\CoercesChildrenToStringInterface

Protected Properties

There are no protected properties in the class.

Show inherited protected properties

Inherited Protected Properties

  • $nodes - Node>. (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): 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 CoreExtension::getAttribute

public enableDefinedTest()

public enableDefinedTest(): void 

public isDefinedTestEnabled()

public isDefinedTestEnabled(): bool 

Show inherited public methods

Inherited Public Methods

  • __clone() - (defined in Twig\Node\Node)
  • __toString() - (defined in Twig\Node\Node)
  • count() - (defined in Twig\Node\Node)
  • deprecateAttribute() - (defined in Twig\Node\Node)
  • deprecateNode() - (defined in Twig\Node\Node)
  • getAttribute() - (defined in Twig\Node\Expression\GetAttrExpression)
  • getDocumentation() - (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)
  • getStringCoercedChildNames() - (defined in Twig\Node\Expression\GetAttrExpression)
  • getTemplateLine() - (defined in Twig\Node\Node)
  • getTemplateName() - (defined in Twig\Node\Node)
  • hasAttribute() - (defined in Twig\Node\Node)
  • hasExplicitParentheses() - (defined in Twig\Node\Expression\AbstractExpression)
  • hasNode() - (defined in Twig\Node\Node)
  • isGenerator() - (defined in Twig\Node\Expression\AbstractExpression)
  • removeAttribute() - (defined in Twig\Node\Node)
  • removeNode() - (defined in Twig\Node\Node)
  • setAttribute() - (defined in Twig\Node\Expression\GetAttrExpression)
  • setDocumentation() - (defined in Twig\Node\Node)
  • setExplicitParentheses() - (defined in Twig\Node\Expression\AbstractExpression)
  • setNode() - Sets (defined in Twig\Node\Node)
  • setNodeTag() - (defined in Twig\Node\Node)
  • setSourceContext() - (defined in Twig\Node\Node)