Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
BeforePageDisplayHookHandler | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
onBeforePageDisplay | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace WikimediaBadges; |
4 | |
5 | use MediaWiki\Hook\BeforePageDisplayHook; |
6 | |
7 | /** |
8 | * Handler for the BeforePageDisplay hook. |
9 | * |
10 | * @since 0.1 |
11 | * |
12 | * @license GPL-2.0-or-later |
13 | * @author Bene* < benestar.wikimedia@gmail.com > |
14 | */ |
15 | class BeforePageDisplayHookHandler implements BeforePageDisplayHook { |
16 | |
17 | /** @inheritDoc */ |
18 | public function onBeforePageDisplay( $out, $skin ): void { |
19 | $out->addModuleStyles( 'ext.wikimediaBadges' ); |
20 | } |
21 | |
22 | } |