BaseEventTagVisitor

Type
Abstract Class
Namespace
craft\web\twig\nodevisitors
Inherits
craft\web\twig\nodevisitors\BaseEventTagVisitor
Implements
Twig_NodeVisitorInterface
Extended by
craft\web\twig\nodevisitors\EventTagAdder, craft\web\twig\nodevisitors\EventTagFinder
Since
3.0

EventTagFinder adds “head”, “beginBody”, and “endBody” events to the template as it’s being compiled.

View source

Protected Properties

PropertyDescription
$foundBeginBodyboolean – Whether the beginBody() tag has been found/added
$foundEndBodyboolean – Whether the endBody() tag has been found/added
$foundHeadboolean – Whether the head() tag has been found/added

$foundBeginBody

Type
boolean

Whether the beginBody() tag has been found/added

View source

Signature

protected static boolean $foundBeginBody = false

$foundEndBody

Type
boolean

Whether the endBody() tag has been found/added

View source

Signature

protected static boolean $foundEndBody = false

$foundHead

Type
boolean

Whether the head() tag has been found/added

View source

Signature

protected static boolean $foundHead = false

Public Methods

MethodDescription
enterNode()Called before child nodes are visited.
getPriority()Returns the priority for this visitor.
leaveNode()Called after child nodes are visited.

Protected Methods

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

foundAllEventTags()

Returns whether all event tags have been found/added.

View source

Returns

boolean

Signature

protected static boolean foundAllEventTags ( )