Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
ResourceLoaderListStyleModule | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
getCssDeclarations | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | /** |
4 | * Class for loading ResourceLoader modules |
5 | * |
6 | * @file |
7 | */ |
8 | |
9 | class ResourceLoaderListStyleModule extends ResourceLoaderImageModule { |
10 | /** @inheritDoc */ |
11 | protected function getCssDeclarations( $primary, $fallback = null ): array { |
12 | return [ |
13 | "list-style-image: /* @embed */ url( $primary );" |
14 | ]; |
15 | } |
16 | } |