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

Callback function for drush advagg-disable.

Related topics

File

./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');
}