Extension:Wikibase Client/Hooks/WikibaseClientEntityTypes

Available from version ??? (Gerrit change 271140)
Called when constructing the top-level WikibaseClient factory May be used to define additional entity types
Define function:
public static function onWikibaseClientEntityTypes( array &$entityTypeDefinitions ) { ... }
Attach hook:
$wgHooks['WikibaseClientEntityTypes'][] = 'MyExtensionHooks::onWikibaseClientEntityTypes';
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:WikibaseClientEntityTypes extensions.


  • &$entityTypeDefinitions: The array of entity type definitions, as defined by WikibaseLib.entitytypes.php.