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. | |
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\CompositeEntityValidator, Wikibase\Repo\Validators\LabelDescriptionNotEqualValidator, Wikibase\Repo\Validators\LabelDescriptionUniquenessValidator, Wikibase\Repo\Validators\LabelUniquenessValidator, and Wikibase\Repo\Validators\SiteLinkUniquenessValidator.