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

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

# foundBeginBody

Type
boolean

Whether the beginBody() tag has been found/added

View source

# foundEndBody

Type
boolean

Whether the endBody() tag has been found/added

View source

# foundHead

Type
boolean

Whether the head() tag has been found/added

View source

# Protected Methods

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

# foundAllEventTags()

Returns whether all event tags have been found/added.

View source

Returns

boolean