Skip to content

Kirby 5.0.4

$version->errors()

Returns all validation errors for the given language

$version->errors() 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->errors(Kirby\Cms\Language|string $language = 'default'): array

Parameters

Name Type Default
$language Kirby\Cms\Languageorstring 'default'

Return type

array

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

Parent class

Kirby\Content\Version