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

Do special hook registrations. More...

Public Member Functions

 __construct (HookContainer $hookContainer)
 
 registerHooks ()
 Register the appropriate hooks in the HookContainer passed to the constructor.
 
 getApiFormatReferenceSpec (array $clientSettings)
 

Static Public Member Functions

static factory ()
 
static onExtensionLoad ()
 

Private Attributes

 $hookContainer
 

Detailed Description

Do special hook registrations.

These are affected by ordering issues and/or conditional on another extension being registered.

Strictly speaking, this isn’t a hook handler (it’s called through $wgExtensionFunctions, not $wgHooks), but it behaves very similarly so it’s grouped with the real hook handlers.

See also
https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:$wgExtensionFunctions

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Hooks\ExtensionLoadHandler::__construct ( HookContainer $hookContainer)
Parameters
HookContainer$hookContainer

Member Function Documentation

◆ factory()

static Wikibase\Client\Hooks\ExtensionLoadHandler::factory ( )
static

◆ getApiFormatReferenceSpec()

Wikibase\Client\Hooks\ExtensionLoadHandler::getApiFormatReferenceSpec ( array $clientSettings)

◆ onExtensionLoad()

static Wikibase\Client\Hooks\ExtensionLoadHandler::onExtensionLoad ( )
static

◆ registerHooks()

Wikibase\Client\Hooks\ExtensionLoadHandler::registerHooks ( )

Register the appropriate hooks in the HookContainer passed to the constructor.

Member Data Documentation

◆ $hookContainer

Wikibase\Client\Hooks\ExtensionLoadHandler::$hookContainer
private

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