Final Class Yiisoft\Translator\IdMessageReader
| Inheritance | Yiisoft\Translator\IdMessageReader |
|---|---|
| Implements | Yiisoft\Translator\MessageReaderInterface |
ID message reader returns ID as message and doesn't support getting all messages at once.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| getMessage() | Yiisoft\Translator\IdMessageReader | |
| getMessages() | Yiisoft\Translator\IdMessageReader |
Method Details
| public string getMessage ( string $id, string $category, string $locale, array $parameters = [] ) | ||
| $id | string | |
| $category | string | |
| $locale | string | |
| $parameters | array | |
public function getMessage(string $id, string $category, string $locale, array $parameters = []): string
{
return $id;
}
Signup or Login in order to comment.