ModelState::update()
Updates the state of the given model.
ModelState::update(string $method, Kirby\Cms\ModelWithContent $current, Kirby\Cms\ModelWithContent|bool|null $next = null, Kirby\Cms\ModelWithContent|Kirby\Cms\Site|null $parent = null): void
Parameters
| Name | Type | Default |
|---|---|---|
| $methodrequired | string |
no default value |
| $currentrequired | Kirby\Cms\ModelWithContent |
no default value |
| $next | Kirby\Cms\ModelWithContentorboolornull |
null
|
| $parent | Kirby\Cms\ModelWithContentorKirby\Cms\Siteornull |
null
|