Interface Yiisoft\Translator\MessageWriterInterface
| Implemented by | Yiisoft\Translator\InMemoryMessageSource |
|---|
Message writer writes a set of messages for a specified category and locale.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| write() | Writes a set of messages for a specified category and locale. | Yiisoft\Translator\MessageWriterInterface |
Method Details
Writes a set of messages for a specified category and locale.
| public abstract void write ( string $category, string $locale, array $messages ) | ||
| $category | string |
Category to write messages for. |
| $locale | string |
Locale to write messages for. |
| $messages | array |
A set of messages to write. The format is the following:
|
public function write(string $category, string $locale, array $messages): void;
Signup or Login in order to comment.