Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\Hooks\BeforePageDisplayHandler Class Reference

Adds CSS for the edit links sidebar link or JS to create a new item or to link with an existing one. More...

+ Inheritance diagram for Wikibase\Client\Hooks\BeforePageDisplayHandler:
+ Collaboration diagram for Wikibase\Client\Hooks\BeforePageDisplayHandler:

Public Member Functions

 __construct (bool $isMobileView, NamespaceChecker $namespaceChecker, bool $dataBridgeEnabled)
 
 onBeforePageDisplay ( $outputPage, $skin)
 
 addModules (OutputPage $outputPage, string $actionName, Skin $skin)
 

Static Public Member Functions

static factory (bool $isMobileView, NamespaceChecker $namespaceChecker, SettingsArray $clientSettings)
 

Private Member Functions

 addStyleModules (OutputPage $outputPage, Title $title, string $actionName)
 
 addJsModules (OutputPage $outputPage, Title $title, $actionName, Skin $skin)
 
 hasEditOrAddLinks (OutputPage $outputPage, Title $title, string $actionName)
 
 allLinksAreSuppressed (OutputPage $outputPage)
 
 hasLinkItemWidget (User $user, OutputPage $outputPage, Title $title, string $actionName)
 

Private Attributes

bool $isMobileView
 
NamespaceChecker $namespaceChecker
 
bool $dataBridgeEnabled
 

Detailed Description

Adds CSS for the edit links sidebar link or JS to create a new item or to link with an existing one.

Author
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Hooks\BeforePageDisplayHandler::__construct ( bool $isMobileView,
NamespaceChecker $namespaceChecker,
bool $dataBridgeEnabled )

Member Function Documentation

◆ addJsModules()

Wikibase\Client\Hooks\BeforePageDisplayHandler::addJsModules ( OutputPage $outputPage,
Title $title,
$actionName,
Skin $skin )
private

◆ addModules()

Wikibase\Client\Hooks\BeforePageDisplayHandler::addModules ( OutputPage $outputPage,
string $actionName,
Skin $skin )

◆ addStyleModules()

Wikibase\Client\Hooks\BeforePageDisplayHandler::addStyleModules ( OutputPage $outputPage,
Title $title,
string $actionName )
private

◆ allLinksAreSuppressed()

Wikibase\Client\Hooks\BeforePageDisplayHandler::allLinksAreSuppressed ( OutputPage $outputPage)
private

◆ factory()

static Wikibase\Client\Hooks\BeforePageDisplayHandler::factory ( bool $isMobileView,
NamespaceChecker $namespaceChecker,
SettingsArray $clientSettings )
static

◆ hasEditOrAddLinks()

Wikibase\Client\Hooks\BeforePageDisplayHandler::hasEditOrAddLinks ( OutputPage $outputPage,
Title $title,
string $actionName )
private

◆ hasLinkItemWidget()

Wikibase\Client\Hooks\BeforePageDisplayHandler::hasLinkItemWidget ( User $user,
OutputPage $outputPage,
Title $title,
string $actionName )
private

◆ onBeforePageDisplay()

Wikibase\Client\Hooks\BeforePageDisplayHandler::onBeforePageDisplay ( $outputPage,
$skin )
Parameters
OutputPage$outputPage
Skin$skin

Member Data Documentation

◆ $dataBridgeEnabled

bool Wikibase\Client\Hooks\BeforePageDisplayHandler::$dataBridgeEnabled
private

◆ $isMobileView

bool Wikibase\Client\Hooks\BeforePageDisplayHandler::$isMobileView
private

◆ $namespaceChecker

NamespaceChecker Wikibase\Client\Hooks\BeforePageDisplayHandler::$namespaceChecker
private

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