Extension:Wikibase Client/Hooks/WikibaseClientDataTypes

From Linux Web Expert

Wikibase Client/Hooks/WikibaseClientDataTypes
Available from version ??? (Gerrit change 228854)
Called when constructing the top-level WikibaseClient factory. May be used to define additional data types.
Define function:
public static function onWikibase_Client_Hooks_WikibaseClientDataTypes( array &$dataTypeDefinitions ) { ... }
Attach hook:
$wgHooks['Wikibase Client/Hooks/WikibaseClientDataTypes'][] = 'MyExtensionHooks::onWikibase_Client_Hooks_WikibaseClientDataTypes';
Called from:File(s): Wikibase Client/Hooks/WikibaseClientDataTypes / client/includes/WikibaseClient.php

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:Wikibase Client/Hooks/WikibaseClientDataTypes extensions.

Parameters

  • &$dataTypeDefinitions: An array of data type definitions, as defined by WikibaseClient.datatypes.php.