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 that invalidates the template cache when the extension configuration changes.

static mixed
toValue(ExpressionNode $args)

No description

Details

at line 29
__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 that invalidates the template cache when the extension configuration changes.

Parameters

Engine $engine

Return Value

mixed

at line 98
static mixed toValue(ExpressionNode $args)

No description

Parameters

ExpressionNode $args

Return Value

mixed