Abstract Class yii\twig\html\BaseClassNode

Inheritanceyii\twig\html\BaseClassNode » Twig_Node
Subclassesyii\twig\html\CssClassNode, yii\twig\html\StyleClassNode
Source Code https://github.com/yiisoft/yii2-twig/blob/master/src/html/BaseClassNode.php

Method Details

Hide inherited methods

compile() public method

public void compile ( \Twig_Compiler $compiler )
$compiler

                public function compile(\Twig_Compiler $compiler)
{
    $name = $this->getAttribute('name')->getValue();
    $method = $this->getHelperMethod();
    $compiler
        ->addDebugInfo($this)
        ->write("\yii\helpers\Html::{$method}(\$context[\"{$name}\"],")
        ->subcompile($this->getNode('value'))
        ->raw(");\n");
}

            
getHelperMethod() public abstract method

public abstract void getHelperMethod ( )

                abstract public function getHelperMethod();