Abstract Class yii\twig\html\BaseClassNode

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

Method Details

Hide inherited methods

compile() public method

public void compile ( \Twig\Compiler $compiler )
$compiler

                public function compile(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();