Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 5 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
HookRunner | |
0.00% |
0 / 5 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
onSkinMinervaOptionsInit | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Minerva\Hooks; |
4 | |
5 | use MediaWiki\HookContainer\HookContainer; |
6 | use MediaWiki\Minerva\SkinOptions; |
7 | use Skin; |
8 | |
9 | /** |
10 | * This is a hook runner class, see docs/Hooks.md in core. |
11 | * @internal |
12 | */ |
13 | class HookRunner implements |
14 | SkinMinervaOptionsInitHook |
15 | { |
16 | private HookContainer $hookContainer; |
17 | |
18 | public function __construct( HookContainer $hookContainer ) { |
19 | $this->hookContainer = $hookContainer; |
20 | } |
21 | |
22 | /** |
23 | * @inheritDoc |
24 | */ |
25 | public function onSkinMinervaOptionsInit( Skin $skin, SkinOptions $skinOptions ) { |
26 | return $this->hookContainer->run( |
27 | 'SkinMinervaOptionsInit', |
28 | [ $skin, $skinOptions ] |
29 | ); |
30 | } |
31 | } |