$translations->findByKey()
Simplifies Translations::find by allowing to pass Language codes that will be properly validated here.
$translations->findByKey(string $key): Kirby\Content\Translation|null
Parameters
| Name | Type | Default |
|---|---|---|
| $keyrequired | string |
no default value |
Return types
Kirby\Content\Translationornull
This method modifies the existing $translations object it is applied to and returns it again.