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 (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 |
# Public Methods
Method | Description |
---|---|
enterNode() | |
getPriority() | |
leaveNode() |
# enterNode()
View source (opens new window)
Arguments
$node
$env
# getPriority()
View source (opens new window)
# leaveNode()
View source (opens new window)
Arguments
$node
$env
# Protected Methods
Method | Description |
---|---|
foundAllEventTags() | Returns whether all event tags have been found/added. |