1 | <?php |
||
11 | class Loader extends \Twig_Loader_Filesystem { |
||
12 | |||
13 | /** |
||
14 | * @var \Drupal\Core\Theme\ThemeManagerInterface |
||
15 | */ |
||
16 | protected $themeManager; |
||
17 | |||
18 | /** |
||
19 | * Static component lookup cache. |
||
20 | * |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $components = null; |
||
24 | |||
25 | /** |
||
26 | * @var \Drupal\Core\Cache\CacheBackendInterface |
||
27 | */ |
||
28 | protected $cacheBackend; |
||
29 | |||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $twigConfig; |
||
34 | |||
35 | public function __construct( |
||
47 | |||
48 | /** |
||
49 | * List all components found within a specific path. |
||
50 | * |
||
51 | * @param string $path |
||
52 | * The directory to scan for |
||
53 | * |
||
54 | * @return string[] |
||
55 | * Map of component filenames keyed by component handle. |
||
56 | */ |
||
57 | protected function listComponents($path) { |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | protected function findTemplate($name) { |
||
94 | |||
95 | } |
||
96 |