Skip to content

Kirby 4.4.1

$translation->get()

Returns a single translation string by key

$translation->get(string $key, ?string $default = null): string|null

Parameters

Name Type Default
$key * string
$default string|null null

Return type

string|null

Parent class

Kirby\Cms\Translation