$version->exists()
Checks if a version exists for the given language
$version->exists() 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->exists(Kirby\Cms\Language|string $language = 'default'): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $language | Kirby\Cms\Languageorstring |
'default'
|
Return type
bool
This method modifies the existing $version object it is applied to and returns it again.
Parent class
Examples
$page->version('changes')->exists();
// check if changes exist in a particular language
$page->version('changes')->exists('de');
$page->version('changes')->exists('current');
$page->version('changes')->exists('default');