EntityExistsValidator checks that a given entity exists.
More...
EntityExistsValidator checks that a given entity exists.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
◆ __construct()
Wikibase\Repo\Validators\EntityExistsValidator::__construct |
( |
EntityLookup |
$entityLookup, |
|
|
|
$entityType = null |
|
) |
| |
◆ setOptions()
Wikibase\Repo\Validators\EntityExistsValidator::setOptions |
( |
array |
$options | ) |
|
- See also
- ValueValidator::setOptions()
- Parameters
-
◆ validate()
Wikibase\Repo\Validators\EntityExistsValidator::validate |
( |
|
$value | ) |
|
- See also
- ValueValidator::validate()
- Parameters
-
EntityIdValue | EntityId | $value | The ID to validate |
- Returns
- Result
- Exceptions
-
◆ $entityLookup
Wikibase\Repo\Validators\EntityExistsValidator::$entityLookup |
|
private |
◆ $entityType
Wikibase\Repo\Validators\EntityExistsValidator::$entityType |
|
private |
The documentation for this class was generated from the following file: