Skip to content

Kirby 5.6.0

$user->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

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

Parameters

Name Type Default
$translations arrayornull null

Return types

arrayornull

This method modifies the existing $user object it is applied to and returns it again.

Parent class

Kirby\Cms\User inherited from Kirby\Cms\ModelWithContent