public static function InitSubscriber::getSubscribedEvents in Advanced CSS/JS Aggregation 8.4
Same name and namespace in other branches
- 8.2 advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber::getSubscribedEvents()
- 8.3 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,
],
];
}