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.
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
- Default value
false
Whether the beginBody() tag has been found/added
foundEndBody
- Type
- boolean
- Default value
false
Whether the endBody() tag has been found/added
foundHead
- Type
- boolean
- Default value
false
Whether the head() tag has been found/added
Protected Methods
Method | Description |
---|---|
foundAllEventTags() | Returns whether all event tags have been found/added. |
foundAllEventTags()
Returns whether all event tags have been found/added.