Wikibase
MediaWiki Wikibase extension
|
Service interface for getting a referenced entity (out of a specified set), from a given starting entity. More...
Public Member Functions | |
getReferencedEntityId (EntityId $fromId, PropertyId $propertyId, array $toIds) | |
Get the referenced entity (out of $toIds), from a given entity. More... | |
Service interface for getting a referenced entity (out of a specified set), from a given starting entity.
The starting entity, and the target entities are (potentially indirectly, via intermediate entities) linked by statements with a given property ID, pointing from the starting entity to one of the target entities.
Wikibase\DataModel\Services\Lookup\ReferencedEntityIdLookup::getReferencedEntityId | ( | EntityId | $fromId, |
PropertyId | $propertyId, | ||
array | $toIds | ||
) |
Get the referenced entity (out of $toIds), from a given entity.
The starting entity, and the target entities are (potentially indirectly, via intermediate entities) linked by statements with the given property ID, pointing from the starting entity to one of the target entities. Implementations of this may or may not return the closest referenced entity (where distance is defined by the number of intermediate entities).
ReferencedEntityIdLookupException |
Implemented in Wikibase\DataModel\Services\Lookup\EntityRetrievingClosestReferencedEntityIdLookup.