phpBB API Documentation
Class

phpbb\template\twig\lexer

class lexer extends Twig_Lexer

Methods

tokenize(Twig_Source $source)

string fix_begin_tokens(string $code, array $parent_nodes = array())

Fix begin tokens (convert our BEGIN to Twig for)

Details

at line 18
public tokenize(Twig_Source $source)

Parameters

Twig_Source $source

at line 196
public string fix_begin_tokens(string $code, array $parent_nodes = array())

Fix begin tokens (convert our BEGIN to Twig for)

Not meant to be used outside of this context, public because the anonymous function calls this

Parameters

string $code
array $parent_nodes (used in recursion)

Return Value

string