public function InitSubscriber::onEvent in Advanced CSS/JS Aggregation 8.2
Same name in this branch
- 8.2 advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber::onEvent()
- 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\EventSubscriberCode
public function onEvent() {
if (advagg_bundler_enabled()) {
$GLOBALS['conf']['core_groups'] = FALSE;
}
}