class InitSubscriber 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
- 8.2 advagg_bundler/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_bundler\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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
InitSubscriber:: |
public static | function | Returns an array of event names this subscriber wants to listen to. | |
InitSubscriber:: |
public | function | Event Response. |