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(ModelWithContent $model, Version $version, array $translations): Translations
Parameters
| Name | Type | Default |
|---|---|---|
| $modelrequired | Kirby\Cms\ModelWithContent |
no default value |
| $versionrequired | Kirby\Content\Version |
no default value |
| $translationsrequired | array |
no default value |