Wikibase
MediaWiki Wikibase extension
|
Validator interface used for validating Entities in a global context. More...
Public Member Functions | |
validateEntity (EntityDocument $entity) | |
Validate an entity before saving. More... | |
Validator interface used for validating Entities in a global context.
This is used to represent global constraints.
Wikibase\Repo\Validators\EntityValidator::validateEntity | ( | EntityDocument | $entity | ) |
Validate an entity before saving.
This is intended for enforcing "hard" global constraints.
EntityDocument | $entity | The entity to validate |
Implemented in Wikibase\Repo\Validators\SiteLinkUniquenessValidator, Wikibase\Repo\Validators\LabelDescriptionNotEqualValidator, and Wikibase\Repo\Validators\CompositeEntityValidator.