Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
WikibaseRepoEntityTypesHookHandler | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
onWikibaseRepoEntityTypes | |
0.00% |
0 / 6 |
|
0.00% |
0 / 1 |
6 |
1 | <?php |
2 | |
3 | declare( strict_types = 1 ); |
4 | |
5 | namespace Wikibase\Search\Elastic\Hooks; |
6 | |
7 | use Wikibase\Repo\Hooks\WikibaseRepoEntityTypesHook; |
8 | |
9 | /** |
10 | * Hooks for Wikibase search. |
11 | */ |
12 | class WikibaseRepoEntityTypesHookHandler extends CirrusSearchConfiguration |
13 | implements WikibaseRepoEntityTypesHook { |
14 | |
15 | /** @inheritDoc */ |
16 | public function onWikibaseRepoEntityTypes( array &$entityTypeDefinitions ): void { |
17 | if ( !CirrusSearchConfiguration::isWBCSEnabled() ) { |
18 | return; |
19 | } |
20 | $entityTypeDefinitions = wfArrayPlus2d( |
21 | require __DIR__ . '/../../WikibaseSearch.entitytypes.php', |
22 | $entityTypeDefinitions |
23 | ); |
24 | } |
25 | |
26 | } |