Same name in other branches
- 5.0.x advagg.drush.inc \drush_advagg_disable()
- 6.0.x advagg.drush.inc \drush_advagg_disable()
- 8.x-3.x advagg.drush.inc \drush_advagg_disable()
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');
}