Skip to content

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 ​

PropertyDescription
foundBeginBodyboolean – Whether the beginBody() tag has been found/added
foundEndBodyboolean – Whether the endBody() tag has been found/added
foundHeadboolean – Whether the head() tag has been found/added

Public Methods ​

MethodDescription
enterNode()
getPriority()
leaveNode()

enterNode() ​

View source

Arguments ​

  • $node
  • $env

getPriority() ​

View source

leaveNode() ​

View source

Arguments ​

  • $node
  • $env

Protected Methods ​

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