Same name in other branches
- 6.0.x src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::enable()
- 8.x-3.x src/Commands/AdvaggCommands.php \Drupal\advagg\Commands\AdvaggCommands::enable()
- 8.x-4.x 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\CommandsCode
public function enable() {
$this->advaggConfig
->set('enabled', 1)
->save();
$this->logger()
->notice(dt('All Advagg functionality is enabled.'));
}