$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 | string ornull |
null
|
Return types
string
ornull
This method modifies the existing $translation
object it is applied to and returns it again.