Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
11 | class Spinner extends Element |
||
12 | { |
||
13 | public function render(array $parameters, HTMLNode $previous): HTMLNode |
||
14 | { |
||
15 | return HTMLNode::factory( |
||
16 | 'div', |
||
17 | [ |
||
18 | 'class' => 'formularium-spinner spinner-border', |
||
19 | 'role' => 'status' |
||
20 | ], |
||
21 | HTMLNode::factory( |
||
22 | 'span', |
||
23 | [ 'class' => "sr-only" ], |
||
24 | 'Loading...' |
||
25 | ) |
||
26 | ); |
||
27 | } |
||
28 | |||
29 | public static function getMetadata(): Metadata |
||
35 | ] |
||
36 | ); |
||
39 |