Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Client\Hooks\WikibaseClientDataTypesHook Interface Reference

This is a hook handler interface, see docs/Hooks.md in MediaWiki core. More...

+ Inheritance diagram for Wikibase\Client\Hooks\WikibaseClientDataTypesHook:

Public Member Functions

 onWikibaseClientDataTypes (array &$dataTypeDefinitions)
 Called when constructing the top-level WikibaseClient factory May be used to define additional data types See also the Wikibase::Repo::Hooks::WikibaseRepoDataTypesHook.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md in MediaWiki core.

Use the hook name "WikibaseClientDataTypes" to register handlers implementing this interface.

Member Function Documentation

◆ onWikibaseClientDataTypes()

Wikibase\Client\Hooks\WikibaseClientDataTypesHook::onWikibaseClientDataTypes ( array & $dataTypeDefinitions)

Called when constructing the top-level WikibaseClient factory May be used to define additional data types See also the Wikibase::Repo::Hooks::WikibaseRepoDataTypesHook.

Hook handlers may add additional definitions. See the datatypes documentation for details.

Parameters
array&$dataTypeDefinitionsThe array of data type definitions, as defined by WikibaseClient.datatypes.php

Implemented in Wikibase\Client\Hooks\WikibaseClientHookRunner.


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