You are here

public function AdvaggCommands::enable in Advanced CSS/JS Aggregation 8.4

Same name and namespace in other branches
  1. 8.3 src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::enable()

Enable Advagg.

@command advagg-enable @usage Standard example drush advagg-enable @aliases advagg-en

File

src/Commands/AdvaggCommands.php, line 97

Class

AdvaggCommands
Advagg commands for Drush 9+.

Namespace

Drupal\advagg\Commands

Code

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