Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
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.
 

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\DataAccess\NullPrefetchingTermLookup, Wikibase\DataAccess\SourceAndTypeDispatchingPrefetchingTermLookup, Wikibase\Lib\Store\CachingPrefetchingTermLookup, Wikibase\Lib\Store\Sql\Terms\PrefetchingEntityTermLookupBase, and Wikibase\Repo\FederatedProperties\ApiPrefetchingTermLookup.


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