EventTagAdder ​
- Type
- Class
- Namespace
- craft\web\twig\nodevisitors
- Inherits
- craft\web\twig\nodevisitors\EventTagAdder » craft\web\twig\nodevisitors\BaseEventTagVisitor
- Implements
Twig\NodeVisitor\NodeVisitorInterface- Since
- 3.0.0
EventTagAdder adds missing head(), beginBody(), and endBody() event tags to templates as they’re 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 |
Public Methods ​
| Method | Description |
|---|---|
| enterNode() | |
| getPriority() | |
| leaveNode() |
enterNode() ​
Arguments ​
$node$env
getPriority() ​
leaveNode() ​
Arguments ​
$node$env
Protected Methods ​
| Method | Description |
|---|---|
| foundAllEventTags() | Returns whether all event tags have been found/added. |