Total Complexity | 4 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | class AssetHelper extends Helper |
||
23 | { |
||
24 | /** |
||
25 | * {@inheritDoc} |
||
26 | */ |
||
27 | public $helpers = ['Html']; |
||
28 | |||
29 | /** |
||
30 | * Array having asset names as keys and revved asset names as values |
||
31 | * |
||
32 | * @var array |
||
33 | */ |
||
34 | protected $assets = []; |
||
35 | |||
36 | /** |
||
37 | * {@inheritDoc} |
||
38 | */ |
||
39 | public function initialize(array $config): void |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * Retrieve revved asset name if found in manifest or return canonical asset name otherwise |
||
51 | * |
||
52 | * @param string $name Canonical asset name (un-revved) |
||
53 | * @return string |
||
54 | */ |
||
55 | public function get(string $name): string |
||
64 |