You are here

public function ScssCompilerService::compileComplete in SCSS/Less Compiler 8

Indicates that all files was compiled.

Run compileQueue function if plugin supports it.

1 call to ScssCompilerService::compileComplete()
ScssCompilerService::compileAll in src/ScssCompilerService.php
Compiles all scss files which was registered.

File

src/ScssCompilerService.php, line 267

Class

ScssCompilerService
Defines a class for scss compiler service.

Namespace

Drupal\scss_compiler

Code

public function compileComplete() {
  $plugins = $this->config
    ->get('plugins');
  foreach ($plugins as $plugin) {
    $compiler = \Drupal::service('plugin.manager.scss_compiler')
      ->getInstanceById($plugin);
    if (method_exists($compiler, 'compileQueue')) {
      $compiler
        ->compileQueue();
    }
  }
}