class TranslatorHelper extends Helper

Properties

protected $charset from Helper
protected $translator

Methods

setCharset(string $charset)

Sets the default charset.

from Helper
string
getCharset()

Gets the default charset.

from Helper
__construct(TranslatorInterface $translator)

No description

trans($id, array $parameters = [], $domain = 'messages', $locale = null)

No description

transChoice($id, $number, array $parameters = [], $domain = 'messages', $locale = null)

No description

string
getName()

Returns the canonical name of this helper.

Details

in Helper at line 31
setCharset(string $charset)

Sets the default charset.

Parameters

string $charset The charset

in Helper at line 41
string getCharset()

Gets the default charset.

Return Value

string The default charset

at line 24
__construct(TranslatorInterface $translator)

Parameters

TranslatorInterface $translator

at line 32
trans($id, array $parameters = [], $domain = 'messages', $locale = null)

Parameters

$id
array $parameters
$domain
$locale

See also

TranslatorInterface::trans

at line 40
transChoice($id, $number, array $parameters = [], $domain = 'messages', $locale = null)

Parameters

$id
$number
array $parameters
$domain
$locale

See also

TranslatorInterface::transChoice

at line 48
string getName()

Returns the canonical name of this helper.

Return Value

string The canonical name