EventTagFinder

Type
Class
Namespace
craft\web\twig\nodevisitors
Inherits
craft\web\twig\nodevisitors\EventTagFinder » craft\web\twig\nodevisitors\BaseEventTagVisitor
Implements
Twig\NodeVisitor\NodeVisitorInterface
Since
3.0.0

EventTagFinder looks for head(), beginBody(), and endBody() event tags in templates as they’re being compiled.

View source

# Protected Properties

Property Description
foundBeginBody boolean – Whether the beginBody() tag has been found/added
foundEndBody boolean – Whether the endBody() tag has been found/added
foundHead boolean – Whether the head() tag has been found/added

# Public Methods

# enterNode()

View source

Arguments

  • $node
  • $env

# getPriority()

View source

# leaveNode()

View source

Arguments

  • $node
  • $env

# Protected Methods

Method Description
foundAllEventTags() Returns whether all event tags have been found/added.