Skip to content

Kirby 3.8.4

$modelwithcontent->update()

Updates the model data

$modelwithcontent->update(array $input = null, string $languageCode = null, bool $validate = false): Kirby\Cms\ModelWithContent

Parameters

Name Type Default
$input array null
$languageCode string null
$validate bool false

Return type

Kirby\Cms\ModelWithContent

This method does not modify the existing $modelwithcontent object but returns a new object with the changes applied. Learn more →

Exceptions

Type Description
Kirby\Exception\InvalidArgumentException If the input array contains invalid values

Parent class

Kirby\Cms\ModelWithContent