You are here

public function InitSubscriber::onEvent in Advanced CSS/JS Aggregation 8.2

Same name in this branch
  1. 8.2 advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber::onEvent()
  2. 8.2 advagg_bundler/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_bundler\EventSubscriber\InitSubscriber::onEvent()

Event Response.

File

advagg_bundler/src/EventSubscriber/InitSubscriber.php, line 23

Class

InitSubscriber
Set the AdvAgg setting core_groups to FALSE if bundler is enabled.

Namespace

Drupal\advagg_bundler\EventSubscriber

Code

public function onEvent() {
  if (advagg_bundler_enabled()) {
    $GLOBALS['conf']['core_groups'] = FALSE;
  }
}