You are here

function scss_compiler_update_8002 in SCSS/Less Compiler 8

Set flush cache behaviour.

File

./scss_compiler.install, line 72
Install, update and uninstall functions for the SCSS Compiler module.

Code

function scss_compiler_update_8002() {
  $config = Drupal::configFactory()
    ->getEditable('scss_compiler.settings');
  if ($config && $config
    ->get('flush_cache_type') === NULL) {
    $config
      ->set('flush_cache_type', 'default');
    $config
      ->save(TRUE);
  }
}