W3cubDocs

/Symfony 4.1

MessageFormatterInterface

interface MessageFormatterInterface

Methods

string format(string $message, string $locale, array $parameters = array())

Formats a localized message pattern with given arguments.

Details

string format(string $message, string $locale, array $parameters = array())

Formats a localized message pattern with given arguments.

Parameters

string $message The message (may also be an object that can be cast to string)
string $locale The message locale
array $parameters An array of parameters for the message

Return Value

string