Skip to content

NavNode ​

Type
Class
Namespace
craft\web\twig\nodes
Inherits
craft\web\twig\nodes\NavNode » Twig\Node\ForNode
Since
3.0.0

Represents a nav node.

View source

Protected Properties ​

PropertyDescription
navItemNodecraft\web\twig\nodes\NavItem_Node, null

navItemNode ​

Type
craft\web\twig\nodes\NavItem_Node, null
Default value
null

View source

Public Methods ​

MethodDescription
__construct()NavNode constructor.
compile()

__construct() ​

NavNode constructor.

View source

Arguments ​

  • $keyTarget (\Twig\Node\Expression\AssignNameExpression)
  • $valueTarget (\Twig\Node\Expression\AssignNameExpression)
  • $seq (\Twig\Node\Expression\AbstractExpression)
  • $upperBody (\Twig\Node\Node)
  • $lowerBody (\Twig\Node\Node, null)
  • $indent (\Twig\Node\Node, null)
  • $outdent (\Twig\Node\Node, null)
  • $lineno (mixed)
  • $tag (mixed)

compile() ​

View source

Arguments ​

  • $compiler