Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Hooks\DifferenceEngineViewHeaderHookHandler Class Reference

Hook for prefetching and handling federated properties before links are rendered. More...

+ Inheritance diagram for Wikibase\Repo\Hooks\DifferenceEngineViewHeaderHookHandler:
+ Collaboration diagram for Wikibase\Repo\Hooks\DifferenceEngineViewHeaderHookHandler:

Public Member Functions

 __construct (bool $federatedPropertiesEnabled, LanguageFallbackChainFactory $languageFallbackChainFactory, LinkTargetEntityIdLookup $linkTargetEntityIdLookup, SummaryParsingPrefetchHelper $summaryParsingPrefetcher)
 
 onDifferenceEngineViewHeader ( $differenceEngine)
 

Static Public Member Functions

static factory ()
 

Private Attributes

 $summaryParsingPrefetcher
 
 $linkLookup
 
 $languageFallbackChainFactory
 
 $federatedPropertiesEnabled
 

Detailed Description

Hook for prefetching and handling federated properties before links are rendered.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Hooks\DifferenceEngineViewHeaderHookHandler::__construct ( bool  $federatedPropertiesEnabled,
LanguageFallbackChainFactory  $languageFallbackChainFactory,
LinkTargetEntityIdLookup  $linkTargetEntityIdLookup,
SummaryParsingPrefetchHelper  $summaryParsingPrefetcher 
)
Parameters
bool$federatedPropertiesEnabled
LanguageFallbackChainFactory$languageFallbackChainFactory
LinkTargetEntityIdLookup$linkTargetEntityIdLookup
SummaryParsingPrefetchHelper$summaryParsingPrefetcher

Member Function Documentation

◆ factory()

static Wikibase\Repo\Hooks\DifferenceEngineViewHeaderHookHandler::factory ( )
static

◆ onDifferenceEngineViewHeader()

Wikibase\Repo\Hooks\DifferenceEngineViewHeaderHookHandler::onDifferenceEngineViewHeader (   $differenceEngine)

Member Data Documentation

◆ $federatedPropertiesEnabled

Wikibase\Repo\Hooks\DifferenceEngineViewHeaderHookHandler::$federatedPropertiesEnabled
private

◆ $languageFallbackChainFactory

Wikibase\Repo\Hooks\DifferenceEngineViewHeaderHookHandler::$languageFallbackChainFactory
private

◆ $linkLookup

Wikibase\Repo\Hooks\DifferenceEngineViewHeaderHookHandler::$linkLookup
private

◆ $summaryParsingPrefetcher

Wikibase\Repo\Hooks\DifferenceEngineViewHeaderHookHandler::$summaryParsingPrefetcher
private

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