Skip to content

Kirby 6.0.0

ModelState::update()

Updates the state of the given model.

ModelState::update(string $method, ModelWithContent $current, ModelWithContent|bool|null $next = null, ModelWithContent|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

Parent class

Kirby\Cms\ModelState