class TranslatorHelper extends Helper

TranslatorHelper.

Methods

setCharset(string $charset)

Sets the default charset.

from Helper
string
getCharset()

Gets the default charset.

from Helper
__construct(TranslatorInterface $translator)

Constructor.

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

No description

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

No description

string
getName()

Returns the canonical name of this helper.

Details

in Helper at line line 31
setCharset(string $charset)

Sets the default charset.

Parameters

string $charset The charset

in Helper at line line 41
string getCharset()

Gets the default charset.

Return Value

string The default charset

at line line 31
__construct(TranslatorInterface $translator)

Constructor.

Parameters

TranslatorInterface $translator A TranslatorInterface instance

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

Parameters

$id
array $parameters
$domain
$locale

See also

TranslatorInterface::trans()

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

Parameters

$id
$number
array $parameters
$domain
$locale

See also

TranslatorInterface::transChoice()

at line line 55
string getName()

Returns the canonical name of this helper.

Return Value

string The canonical name