Extension:Wikibase Client/Hooks/WikibaseClientEntityTypes
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.
Parameters
edit&$entityTypeDefinitions
: Thearray
of entity type definitions, as defined byWikibaseLib.entitytypes.php
.