Same name in other branches
  1. 6.0.x advagg.drush.inc \drush_advagg_enable()
  2. 8.x-3.x advagg.drush.inc \drush_advagg_enable()
  3. 8.x-4.x advagg.drush.inc \drush_advagg_enable()

Callback function for drush advagg-enable.

Sujets associés

Fichier

./advagg.drush.inc, line 105

Code

function drush_advagg_enable() {
    
    /** @var \Drupal\Core\Config\Config $config */
    $config = \Drupal::service('config.factory')->getEditable('advagg.settings');
    $config->set('enabled', 1)
        ->save();
    \Drupal::logger(dt('All Advagg functionality is enabled.'), 'ok');
}