yii\twig\ViewRenderer::setLexerOptions PHP Method

setLexerOptions() public method

Sets Twig lexer options to change templates syntax
public setLexerOptions ( array $options )
$options array @see self::$lexerOptions
    public function setLexerOptions($options)
    {
        $lexer = new \Twig_Lexer($this->twig, $options);
        $this->twig->setLexer($lexer);
    }