$modelWithContent->update()
Updates the model data
$modelWithContent->update(array|null $input = null, string|null $languageCode = null, bool $validate = false): Kirby\Cms\ModelWithContent
Parameters
| Name | Type | Default |
|---|---|---|
| $input | arrayornull |
null
|
| $languageCode | stringornull |
null
|
| $validate | bool |
false
|
Return type
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 |