public function ScssCompilerService::compileAll in SCSS/Less Compiler 8
Compiles all scss files which was registered.
Parameters
bool $all: If TRUE compiles all scss files from all themes in system, else compiles only scss files from active theme.
bool $flush: If TRUE ignore last modified time.
Overrides ScssCompilerInterface::compileAll
1 call to ScssCompilerService::compileAll()
- ScssCompilerService::flushCache in src/
ScssCompilerService.php - Flushes all compiler caches and reset css aggregation.
File
- src/
ScssCompilerService.php, line 250
Class
- ScssCompilerService
- Defines a class for scss compiler service.
Namespace
Drupal\scss_compilerCode
public function compileAll($all = FALSE, $flush = FALSE) {
$scss_files = $this
->getCompileList($all);
if (!empty($scss_files)) {
foreach ($scss_files as $namespace) {
foreach ($namespace as $scss_file) {
$this
->compile($scss_file, $flush);
}
}
$this
->compileComplete();
}
}