Class yii\twig\Optimizer

Inheritanceyii\twig\Optimizer
ImplementsTwig_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.

Method Details

enterNode() public method

public void enterNode ( \Twig_Node $node, \Twig_Environment $env )
$node
$env
getPriority() public method

public void getPriority ( )
leaveNode() public method

public void leaveNode ( \Twig_Node $node, \Twig_Environment $env )
$node
$env