Wikibase
MediaWiki Wikibase extension
|
Service interface for looking up an Entity's redirect target id. More...
Public Member Functions | |
getRedirectForEntityId (EntityId $entityId, $forUpdate='') | |
Returns the redirect target associated with the given redirect ID. | |
Public Attributes | |
const | FOR_UPDATE = 'for update' |
Service interface for looking up an Entity's redirect target id.
Wikibase\DataModel\Services\Lookup\EntityRedirectTargetLookup::getRedirectForEntityId | ( | EntityId | $entityId, |
$forUpdate = '' ) |
Returns the redirect target associated with the given redirect ID.
EntityId | $entityId | |
string | $forUpdate | If EntityRedirectTargetLookup::FOR_UPDATE is given the redirect will be determined from the canonical master database. |
EntityRedirectLookupException |
Implemented in Wikibase\Lib\Store\RevisionBasedEntityRedirectTargetLookup, and Wikibase\Repo\Store\Sql\WikiPageEntityRedirectLookup.
const Wikibase\DataModel\Services\Lookup\EntityRedirectTargetLookup::FOR_UPDATE = 'for update' |