Same name in other branches
  1. 5.0.x advagg.drush.inc \drush_advagg_disable()
  2. 6.0.x advagg.drush.inc \drush_advagg_disable()
  3. 8.x-3.x advagg.drush.inc \drush_advagg_disable()

Callback function for drush advagg-disable.

Sujets associés

Fichier

./advagg.drush.inc, line 95

Code

function drush_advagg_disable() {
    
    /** @var \Drupal\Core\Config\Config $config */
    $config = \Drupal::service('config.factory')->getEditable('advagg.settings');
    $config->set('enabled', 0)
        ->save();
    \Drupal::logger(dt('All Advagg functionality is disabled.'), 'ok');
}