$version->isIdentical()
Returns whether the content of both versions is identical
$version->isIdentical()
has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.
$version->isIdentical(Kirby\Content\Version|Kirby\Content\VersionId|string $version, Kirby\Cms\Language|string $language = 'default'): bool
Parameters
Name | Type | Default |
---|---|---|
$versionrequired | Kirby\Content\Version orKirby\Content\VersionId orstring |
no default value |
$language | Kirby\Cms\Language orstring |
'default'
|
Return type
bool
This method modifies the existing $version
object it is applied to and returns it again.
Parent class
Examples
$latest = $page->version('latest');
$changes = $page->version('changes');
if ($latest->isIdentical($changes) === true) {
// there are no changes
}