|
Wikibase
MediaWiki Wikibase extension
|
This is a hook handler interface, see docs/Hooks.md in MediaWiki core. More...
Inheritance diagram for Wikibase\Repo\Hooks\WikibaseRepoEntityTypesHook:Public Member Functions | |
| onWikibaseRepoEntityTypes (array &$entityTypeDefinitions) | |
Called when constructing the top-level WikibaseRepo factory. | |
This is a hook handler interface, see docs/Hooks.md in MediaWiki core.
Use the hook name "WikibaseRepoEntityTypes" to register handlers implementing this interface.
| Wikibase\Repo\Hooks\WikibaseRepoEntityTypesHook::onWikibaseRepoEntityTypes | ( | array & | $entityTypeDefinitions | ) |
Called when constructing the top-level WikibaseRepo factory.
May be used to define additional entity types. See also WikibaseClientDataTypesHook.
Hook handlers may add additional definitions. See entitytypes documentation for details.
This hook runs during early initialization; its handlers must obey the () MediaWikiServicesHook rules, i.e. not declare any service dependencies nor access any unsafe services dynamically.
| array[] | &$entityTypeDefinitions | The array of entity type definitions, as defined by WikibaseLib.entitytypes.php. |
Implemented in Wikibase\Repo\Hooks\WikibaseRepoHookRunner.