Skip to content

Kirby 5.2.1

$tokenizer->tokens()

Tokenizes the query string and returns a generator of tokens.

$tokenizer->tokens() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

$tokenizer->tokens(): Generator

Return type

Generator<Token>

This method modifies the existing $tokenizer object it is applied to and returns it again.

Parent class

Kirby\Query\Parser\Tokenizer