public function AdvaggCommands::disable in Advanced CSS/JS Aggregation 8.3
Same name and namespace in other branches
- 8.4 src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::disable()
Disable Advagg.
@command advagg-disable @usage Standard example drush advagg-disable @aliases advagg-da
File
- src/
Commands/ AdvaggCommands.php, line 84
Class
- AdvaggCommands
- Advagg commands for Drush 9+.
Namespace
Drupal\advagg\CommandsCode
public function disable() {
$this->advaggConfig
->set('enabled', 0)
->save();
$this
->logger()
->notice(dt('All Advagg functionality is disabled.'));
}