final class TranslatorExtension extends Extension

Extension for translations.

Methods

__construct(Translator|null $translator, string|null $key = null)

No description

array
getTags()

Returns a list of parsers for Latte tags.

array
getFilters()

Returns a list of |filters.

mixed
getCacheKey(Engine $engine)

Returns a value to distinguish multiple versions of the template.

parseTranslate(Tag $tag)

{_ ...}

static mixed
toValue($args)

No description

Details

at line 30
__construct(Translator|null $translator, string|null $key = null)

No description

Parameters

Translator|null $translator
string|null $key

at line 41
array getTags()

Returns a list of parsers for Latte tags.

Return Value

array

at line 50
array getFilters()

Returns a list of |filters.

Return Value

array

at line 60
mixed getCacheKey(Engine $engine)

Returns a value to distinguish multiple versions of the template.

Parameters

Engine $engine

Return Value

mixed

at line 69
PrintNode parseTranslate(Tag $tag)

{_ ...}

Parameters

Tag $tag

Return Value

PrintNode

at line 98
static mixed toValue($args)

No description

Parameters

$args

Return Value

mixed