Class yii\twig\Optimizer
Inheritance | yii\twig\Optimizer |
---|---|
Implements | Twig_NodeVisitorInterface |
Source Code | https://github.com/yiisoft/yii2-twig/blob/master/Optimizer.php |
Optimizer removes echo before special functions call and injects function name as an argument for the view helper calls.
Public Methods
Method | Description | Defined By |
---|---|---|
enterNode() | yii\twig\Optimizer | |
getPriority() | yii\twig\Optimizer | |
leaveNode() | yii\twig\Optimizer |
Method Details
public void enterNode ( \Twig_Node $node, \Twig_Environment $env ) | ||
$node | ||
$env |
public void getPriority ( ) |
public void leaveNode ( \Twig_Node $node, \Twig_Environment $env ) | ||
$node | ||
$env |