Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Hooks\WikibaseRepoEntityTypesHook Interface Reference

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.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md in MediaWiki core.

Use the hook name "WikibaseRepoEntityTypes" to register handlers implementing this interface.

Member Function Documentation

◆ onWikibaseRepoEntityTypes()

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.

Parameters
array[]&$entityTypeDefinitionsThe array of entity type definitions, as defined by WikibaseLib.entitytypes.php.

Implemented in Wikibase\Repo\Hooks\WikibaseRepoHookRunner.


The documentation for this interface was generated from the following file: