Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\LibHooks Class Reference

File defining the hook handlers for the WikibaseLib extension. More...

+ Inheritance diagram for Wikibase\Lib\LibHooks:
+ Collaboration diagram for Wikibase\Lib\LibHooks:

Public Member Functions

 onUnitTestsList (&$paths)
 Hook to add PHPUnit test cases.
 
 onResourceLoaderRegisterModules (ResourceLoader $rl)
 Register the wikibase.Site ResourceLoader module with a dynamic dependency on ULS.
 
 onExtensionTypes (&$extensionTypes)
 Called when generating the extensions credits, use this to change the tables headers.
 

Static Public Member Functions

static onRegistration ()
 Callback called after extension registration, for any work that cannot be done directly in extension.json.
 

Detailed Description

File defining the hook handlers for the WikibaseLib extension.

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
Daniel Werner < danie.nosp@m.l.a..nosp@m.r.wer.nosp@m.ner@.nosp@m.gmail.nosp@m..com >
H. Snater < media.nosp@m.wiki.nosp@m.@snat.nosp@m.er.c.nosp@m.om >

Member Function Documentation

◆ onExtensionTypes()

Wikibase\Lib\LibHooks::onExtensionTypes ( & $extensionTypes)

Called when generating the extensions credits, use this to change the tables headers.

See also
https://www.mediawiki.org/wiki/Manual:Hooks/ExtensionTypes
Parameters
array&$extensionTypes
Returns
void

◆ onRegistration()

static Wikibase\Lib\LibHooks::onRegistration ( )
static

Callback called after extension registration, for any work that cannot be done directly in extension.json.

◆ onResourceLoaderRegisterModules()

Wikibase\Lib\LibHooks::onResourceLoaderRegisterModules ( ResourceLoader $rl)

Register the wikibase.Site ResourceLoader module with a dynamic dependency on ULS.

See also
https://www.mediawiki.org/wiki/Manual:Hooks/ResourceLoaderRegisterModules
Parameters
ResourceLoader$rl
Returns
void

◆ onUnitTestsList()

Wikibase\Lib\LibHooks::onUnitTestsList ( & $paths)

Hook to add PHPUnit test cases.

See also
https://www.mediawiki.org/wiki/Manual:Hooks/UnitTestsList
Parameters
string[]&$paths
Returns
void

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