function drush_advagg_disable in Advanced CSS/JS Aggregation 8.4
Same name and namespace in other branches
- 8.3 advagg.drush.inc \drush_advagg_disable()
Callback function for drush advagg-disable.
Related topics
File
- ./
advagg.drush.inc, line 95 - Drush commands for Advanced CSS/JS Aggregation.
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');
}