final class TranslatorExtension extends Extension

Extension for translations.

Methods

__construct($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 26
__construct($translator, string|null $key = null)

No description

Parameters

$translator
string|null $key

at line 36
array getTags()

Returns a list of parsers for Latte tags.

Return Value

array

at line 45
array getFilters()

Returns a list of |filters.

Return Value

array

at line 55
mixed getCacheKey(Engine $engine)

Returns a value to distinguish multiple versions of the template.

Parameters

Engine $engine

Return Value

mixed

at line 64
PrintNode parseTranslate(Tag $tag)

{_ ...}

Parameters

Tag $tag

Return Value

PrintNode

at line 93
static mixed toValue($args)

No description

Parameters

$args

Return Value

mixed