$translation->get()
Returns a single translation string by key
$translation->get(string $key, string|null $default = null): string|null
Parameters
| Name | Type | Default |
|---|---|---|
| $keyrequired | string |
no default value |
| $default | stringornull |
null
|
Return types
stringornull
This method modifies the existing $translation object it is applied to and returns it again.