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\ModelWithContent orbool ornull |
null
|
$parent | Kirby\Cms\ModelWithContent orKirby\Cms\Site ornull |
null
|