Same name in this branch
- 8.x-2.x advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber
Same name in other branches
- 5.0.x advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber
- 6.0.x advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber
- 8.x-3.x advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber
- 8.x-4.x advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber
Set the AdvAgg setting core_groups to FALSE if bundler is enabled.
Hierarchy
- class \Drupal\advagg_bundler\EventSubscriber\InitSubscriber implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
Expanded class hierarchy of InitSubscriber
File
-
advagg_bundler/
src/ EventSubscriber/ InitSubscriber.php, line 11
Namespace
Drupal\advagg_bundler\EventSubscriberView source
class InitSubscriber implements EventSubscriberInterface {
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
return [
KernelEvents::REQUEST => [
'onEvent',
0,
],
];
}
/**
* Event Response.
*/
public function onEvent() {
if (advagg_bundler_enabled()) {
$GLOBALS['conf']['core_groups'] = FALSE;
}
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
InitSubscriber::getSubscribedEvents | public static | function | |
InitSubscriber::onEvent | public | function | Event Response. |