Wikibase
MediaWiki Wikibase extension
|
Service interface to find Entities by a (somehow) linked page title that is not identical to the page where the entity is stored. More...
Public Member Functions | |
getEntityIdForLinkedTitle ( $globalSiteId, $pageTitle) | |
Returns the ID of an Entity associated to the given page title. | |
Service interface to find Entities by a (somehow) linked page title that is not identical to the page where the entity is stored.
Not meant as a replacement for EntityIdLookup!
Wikibase\Lib\Store\EntityByLinkedTitleLookup::getEntityIdForLinkedTitle | ( | $globalSiteId, | |
$pageTitle ) |
Returns the ID of an Entity associated to the given page title.
How the Entity is associated is not specified by this interface. A typical mechanism is the mapping provided via SiteLinks on Items.
string | $globalSiteId | An empty string refers to the local wiki. |
string | $pageTitle |
InvalidArgumentException | if a parameter does not have the expected type |
Implemented in Wikibase\Lib\Store\HashSiteLinkStore, and Wikibase\Lib\Store\Sql\SiteLinkTable.