Same name in other branches
- 6.0.x advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber::getSubscribedEvents()
- 8.x-2.x advagg_bundler/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_bundler\EventSubscriber\InitSubscriber::getSubscribedEvents()
- 8.x-2.x advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber::getSubscribedEvents()
- 8.x-3.x advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber::getSubscribedEvents()
- 8.x-4.x advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber::getSubscribedEvents()
File
-
advagg_mod/
src/ EventSubscriber/ InitSubscriber.php, line 111
Class
- InitSubscriber
- Perform initialization tasks for advagg_mod.
Namespace
Drupal\advagg_mod\EventSubscriberCode
public static function getSubscribedEvents() {
return [
KernelEvents::REQUEST => [
'onEvent',
0,
],
KernelEvents::RESPONSE => [
[
'deferCss',
0,
],
[
'deferJs',
0,
],
[
'asyncJs',
0,
],
],
AssetOptimizationEvent::CSS => [
'translateCss',
0,
],
AssetOptimizationEvent::JS => [
'removeConsoleLog',
-10,
],
];
}