$version->isValid()
Checks if there are any validation errors for the given language
$version->isValid()
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->isValid(Kirby\Cms\Language|string $language = 'default'): bool
Parameters
Name | Type | Default |
---|---|---|
$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
$page->version('changes')->isValid();
// receive all validation errors
$page->version('changes')->errors();
// by language
$page->version('changes')->isValid('de');
$page->version('changes')->errors('de');