Skip to content

BaseEventTagVisitor ​

Type
Abstract Class
Namespace
craft\web\twig\nodevisitors
Inherits
craft\web\twig\nodevisitors\BaseEventTagVisitor
Implements
Twig\NodeVisitor\NodeVisitorInterface
Extended by
craft\web\twig\nodevisitors\EventTagAdder, craft\web\twig\nodevisitors\EventTagFinder
Since
3.0.0

EventTagFinder adds “head”, “beginBody”, and “endBody” events to the template as it’s 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

foundBeginBody ​

Type
boolean
Default value
false

Whether the beginBody() tag has been found/added

View source

foundEndBody ​

Type
boolean
Default value
false

Whether the endBody() tag has been found/added

View source

foundHead ​

Type
boolean
Default value
false

Whether the head() tag has been found/added

View source

Protected Methods ​

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

foundAllEventTags() ​

Returns whether all event tags have been found/added.

View source

Returns ​

boolean