Craft 3 Class Reference

Abstract Class craft\web\twig\nodevisitors\BaseEventTagVisitor

Inheritance
craft\web\twig\nodevisitors\BaseEventTagVisitor
Implements
Twig_NodeVisitorInterface
Subclasses
craft\web\twig\nodevisitors\EventTagAdder, craft\web\twig\nodevisitors\EventTagFinder
Available since version
3.0
Source Code
https://github.com/craftcms/cms/blob/master/src/web/twig/nodevisitors/BaseEventTagVisitor.php

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

Protected Properties
Property Type Description Defined By
$foundBeginBody boolean Whether the beginBody() tag has been found/added craft\web\twig\nodevisitors\BaseEventTagVisitor
$foundEndBody boolean Whether the endBody() tag has been found/added craft\web\twig\nodevisitors\BaseEventTagVisitor
$foundHead boolean Whether the head() tag has been found/added craft\web\twig\nodevisitors\BaseEventTagVisitor
Public Methods
Method Description Defined By
enterNode() Called before child nodes are visited. Twig_NodeVisitorInterface
getPriority() Returns the priority for this visitor. Twig_NodeVisitorInterface
leaveNode() Called after child nodes are visited. Twig_NodeVisitorInterface
Protected Methods
Method Description Defined By
foundAllEventTags() Returns whether all event tags have been found/added. craft\web\twig\nodevisitors\BaseEventTagVisitor

Property Details

$foundBeginBody protected static property #

Whether the beginBody() tag has been found/added

protected static boolean $foundBeginBody false

$foundEndBody protected static property #

Whether the endBody() tag has been found/added

protected static boolean $foundEndBody false

$foundHead protected static property #

Whether the head() tag has been found/added

protected static boolean $foundHead false

Method Details

foundAllEventTags() protected static method #

Returns whether all event tags have been found/added.

protected static boolean foundAllEventTags ( )