Translations::create()
Creates a new Translations collection from an array of translations properties. This is used in ModelWithContent::setTranslations to properly normalize an array definition.
Translations::create(Kirby\Cms\ModelWithContent $model, Kirby\Content\Version $version, array $translations): Kirby\Content\Translations
Parameters
Name | Type | Default |
---|---|---|
$modelrequired | Kirby\Cms\ModelWithContent |
no default value |
$versionrequired | Kirby\Content\Version |
no default value |
$translationsrequired | array |
no default value |