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 (opens new window)
# Protected Properties
Property | Description |
---|---|
foundBeginBody | boolean (opens new window) – Whether the beginBody() tag has been found/added |
foundEndBody | boolean (opens new window) – Whether the endBody() tag has been found/added |
foundHead | boolean (opens new window) – Whether the head() tag has been found/added |
# foundBeginBody
- Type
- boolean (opens new window)
- Default value
false
Whether the beginBody() tag has been found/added
View source (opens new window)
# foundEndBody
- Type
- boolean (opens new window)
- Default value
false
Whether the endBody() tag has been found/added
View source (opens new window)
# foundHead
- Type
- boolean (opens new window)
- Default value
false
Whether the head() tag has been found/added
View source (opens new window)
# 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 (opens new window)
Returns
← TagNode EventTagAdder →