Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
ChangeTagHooks | |
0.00% |
0 / 2 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
onListDefinedTags | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
onChangeTagsListActive | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\CommunityConfiguration\Hooks; |
4 | |
5 | use MediaWiki\ChangeTags\Hook\ChangeTagsListActiveHook; |
6 | use MediaWiki\ChangeTags\Hook\ListDefinedTagsHook; |
7 | use MediaWiki\Extension\CommunityConfiguration\Store\WikiPageStore; |
8 | |
9 | class ChangeTagHooks implements ListDefinedTagsHook, ChangeTagsListActiveHook { |
10 | |
11 | /** |
12 | * @inheritDoc |
13 | */ |
14 | public function onListDefinedTags( &$tags ): void { |
15 | $tags[] = WikiPageStore::TAG_NAME; |
16 | } |
17 | |
18 | /** |
19 | * @inheritDoc |
20 | */ |
21 | public function onChangeTagsListActive( &$tags ): void { |
22 | $tags[] = WikiPageStore::TAG_NAME; |
23 | } |
24 | } |