Legend of the Green Dragon

Translator extends AbstractExtension
in package

Table of Contents

$translator  : mixed
__construct()  : mixed
getFilters()  : mixed
{@inheritdoc}
getFunctions()  : mixed
{@inheritdoc}
getName()  : mixed
{@inheritdoc}
messageFormatter()  : string
Only format a message with MessageFormatter.
translatorDefaultLocale()  : string
Get locale for translator.
cleanParameters()  : bool
Clean param of a value.

Properties

Methods

__construct()

public __construct(TranslatorInterface $translator) : mixed
Parameters
$translator : TranslatorInterface
Return values
mixed

getFilters()

{@inheritdoc}

public getFilters() : mixed
Return values
mixed

getFunctions()

{@inheritdoc}

public getFunctions() : mixed
Return values
mixed

getName()

{@inheritdoc}

public getName() : mixed
Return values
mixed

messageFormatter()

Only format a message with MessageFormatter.

public messageFormatter(string|null $message[, array<string|int, mixed>|null $parameters = [] ][, string|null $locale = null ]) : string
Parameters
$message : string|null
$parameters : array<string|int, mixed>|null = []
$locale : string|null = null
Return values
string

translatorDefaultLocale()

Get locale for translator.

public translatorDefaultLocale() : string
Return values
string

cleanParameters()

Clean param of a value.

private cleanParameters(mixed $param) : bool
Parameters
$param : mixed
Return values
bool

Search results