You are here

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

Saves last modify time of files to the cache.

File

src/ScssCompilerService.php, line 171

Class

ScssCompilerService
Defines a class for scss compiler service.

Namespace

Drupal\scss_compiler

Code

public function destroy() {
  if ($this->config
    ->get('check_modify_time') && $this->fileIsModified) {
    $this->cache
      ->set('scss_compiler_modify_list', $this->lastModifyList, CacheBackendInterface::CACHE_PERMANENT);
  }
}