Wikibase
MediaWiki Wikibase extension
Wikibase\DataAccess\AliasTermBuffer Interface Reference

AliasTermBuffer Interface, to be used alongside TermBuffer. More...

+ Inheritance diagram for Wikibase\DataAccess\AliasTermBuffer:

Public Member Functions

 getPrefetchedAliases (EntityId $entityId, $languageCode)
 Returns terms that were previously loaded by prefetchTerms. More...
 

Detailed Description

AliasTermBuffer Interface, to be used alongside TermBuffer.

Todo:
This or something similar should perhaps move to data-model-services

Member Function Documentation

◆ getPrefetchedAliases()

Wikibase\DataAccess\AliasTermBuffer::getPrefetchedAliases ( EntityId  $entityId,
  $languageCode 
)

Returns terms that were previously loaded by prefetchTerms.

Parameters
EntityId$entityId
string$languageCode
Returns
string[]|false|null The aliases, or false of that entity has no aliases, or null if the term was not yet requested via prefetchTerms().

Implemented in Wikibase\Repo\FederatedProperties\ApiPrefetchingTermLookup, Wikibase\Lib\Store\Sql\Terms\PrefetchingEntityTermLookupBase, Wikibase\Lib\Store\CachingPrefetchingTermLookup, Wikibase\DataAccess\SourceAndTypeDispatchingPrefetchingTermLookup, and Wikibase\DataAccess\NullPrefetchingTermLookup.


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