Same name and namespace in other branches
  1. 5.0.x src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::disable() 1 commentaire
  2. 8.x-3.x src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::disable() 1 commentaire
  3. 8.x-4.x src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::disable() 1 commentaire

Disable Advagg.

@command advagg-disable @usage Standard example drush advagg-disable @aliases advagg-da

Fichier

src/Commands/AdvaggCommands.php, line 84

Classe

AdvaggCommands
Advagg commands for Drush 9+.

Namespace

Drupal\advagg\Commands

Code

public function disable() {
    $this->advaggConfig
        ->set('enabled', 0)
        ->save();
    $this->logger()
        ->notice(dt('All Advagg functionality is disabled.'));
}