Extension:Wikibase Client/Hooks/WikibaseClientDataTypes
Appearance
(Redirected from Manual:Hooks/WikibaseClientDataTypes)
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
: Anarray
of data type definitions, as defined byWikibaseClient.datatypes.php
.