Skip to content

Kirby 6.0.0

$modelWithContent->createTranslations()

Converts the content of the given translations to the values that will be stored by running each of them through the fields of the model's blueprint

$modelWithContent->createTranslations(array|null $translations = null): array|null

Parameters

Name Type Default
$translations arrayornull null

Return types

arrayornull

Parent class

Kirby\Cms\ModelWithContent