Skip to content

Kirby 6.0.0

Translations::factory()

Creates a translations collection from an array of translation data

Translations::factory(array $translations): Translations

Parameters

Name Type Default Description
$translationsrequired array<string, array> no default value Translation strings by locale

Return type

Kirby\Cms\Translations

Parent class

Kirby\Cms\Translations