Jump to content

Extension:Wikibase Client/Hooks/WikibaseClientDataTypes

From mediawiki.org
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 onWikibaseClientDataTypes( array &$dataTypeDefinitions ) { ... }
Attach hook:
$wgHooks['WikibaseClientDataTypes'][] = 'MyExtensionHooks::onWikibaseClientDataTypes';
Called from:File(s): Wikibase Client / client/includes/WikibaseClient.php

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

Parameters

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