Skip to content

Kirby 5.0.4

$changes->ensure()

Verify that the tracked model still really has changes. If not, untrack and remove from collection.

$changes->ensure((\Kirby\Cms\Files|Kirby\Cms\Pages|Kirby\Cms\Users) $tracked): (\Kirby\Cms\Files|Kirby\Cms\Pages|Kirby\Cms\Users)

Parameters

Name Type Default
$trackedrequired (\Kirby\Cms\FilesorKirby\Cms\PagesorKirby\Cms\Users) no default value

Return types

(\Kirby\Cms\FilesorKirby\Cms\PagesorKirby\Cms\Users)

This method modifies the existing $changes object it is applied to and returns it again.

Parent class

Kirby\Content\Changes