public function ScssCompilerService::getCompileList in SCSS/Less Compiler 8
Returns list of scss files which need to be recompiled.
Parameters
bool $all: If TRUE loads all scss files from all themes in system, else loads only scss files from active theme.
Return value
array An associative array with scss files info.
Overrides ScssCompilerInterface::getCompileList
1 call to ScssCompilerService::getCompileList()
- ScssCompilerService::compileAll in src/
ScssCompilerService.php - Compiles all scss files which was registered.
File
- src/
ScssCompilerService.php, line 225
Class
- ScssCompilerService
- Defines a class for scss compiler service.
Namespace
Drupal\scss_compilerCode
public function getCompileList($all = FALSE) {
$files = [];
if ($cache = $this->cache
->get('scss_compiler_list')) {
$data = $cache->data;
if ($all) {
foreach ($data as $namespace) {
foreach ($namespace as $key => $file) {
if (!isset($files[$key])) {
$files[$key] = [];
}
$files[$key] = array_merge($files[$key], $file);
}
}
}
elseif (!empty($data[$this->activeThemeName])) {
$files = $data[$this->activeThemeName];
}
}
return $files;
}