Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Store\LinkTargetEntityIdLookup Interface Reference

This lookup should be able to deal with LinkTargets that: More...

+ Inheritance diagram for Wikibase\Lib\Store\LinkTargetEntityIdLookup:

Public Member Functions

 getEntityId (LinkTarget $linkTarget)
 Returns the EntityId for a given LinkTarget.
 

Detailed Description

This lookup should be able to deal with LinkTargets that:

  • Link directly to an entity page (example: Property:P123 or Item:Q3)
  • Link to an entity page via Special:EntityPage/<EntityId> (example: Special:EntityPage/P123)

Member Function Documentation

◆ getEntityId()

Wikibase\Lib\Store\LinkTargetEntityIdLookup::getEntityId ( LinkTarget $linkTarget)

Returns the EntityId for a given LinkTarget.

Parameters
LinkTarget$linkTargeteither directly to the Entity page, or to Special:EntityPage/<ID>
Returns
EntityId|null

Implemented in Wikibase\Lib\Store\EntityLinkTargetEntityIdLookup.


The documentation for this interface was generated from the following file: