Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\ControllerRegistry Class Reference

Registry of controller callbacks per entity type. More...

Public Member Functions

 __construct (private readonly array $controllerDefinitions)
 get (string $field)

Public Attributes

const WB_SEARCH_ENTITIES_CONTROLLER = 'wbsearchentities-controller'

Detailed Description

Registry of controller callbacks per entity type.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ControllerRegistry::__construct ( private readonly array $controllerDefinitions)
Parameters
array<string,array<string,callable>>$controllerDefinitions

Member Function Documentation

◆ get()

Wikibase\Repo\ControllerRegistry::get ( string $field)
Parameters
string$fieldone of the constants declared in this class
Returns
array<string, callable> map of entity type => callback for that field

Member Data Documentation

◆ WB_SEARCH_ENTITIES_CONTROLLER

const Wikibase\Repo\ControllerRegistry::WB_SEARCH_ENTITIES_CONTROLLER = 'wbsearchentities-controller'

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