Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Hooks\WikibaseRepoDataTypesHook Interface Reference

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

+ Inheritance diagram for Wikibase\Repo\Hooks\WikibaseRepoDataTypesHook:

Public Member Functions

 onWikibaseRepoDataTypes (array &$dataTypeDefinitions)
 Called when constructing the top-level WikibaseRepo factory May be used to define additional data types.
 

Detailed Description

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

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

Member Function Documentation

◆ onWikibaseRepoDataTypes()

Wikibase\Repo\Hooks\WikibaseRepoDataTypesHook::onWikibaseRepoDataTypes ( array & $dataTypeDefinitions)

Called when constructing the top-level WikibaseRepo factory May be used to define additional data types.

See also WikibaseClientDataTypesHook.

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

Parameters
array[]&$dataTypeDefinitionsthe array of data type definitions, as defined by WikibaseRepo.datatypes.php.

Implemented in Wikibase\Repo\Hooks\WikibaseRepoHookRunner.


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