You are here

public static function MinificationSubscriber::getSubscribedEvents in Advanced CSS/JS Aggregation 8.4

Same name in this branch
  1. 8.4 advagg_ext_minify/src/EventSubscriber/MinificationSubscriber.php \Drupal\advagg_ext_minify\EventSubscriber\MinificationSubscriber::getSubscribedEvents()
  2. 8.4 advagg_css_minify/src/EventSubscriber/MinificationSubscriber.php \Drupal\advagg_css_minify\EventSubscriber\MinificationSubscriber::getSubscribedEvents()
  3. 8.4 advagg_js_minify/src/EventSubscriber/MinificationSubscriber.php \Drupal\advagg_js_minify\EventSubscriber\MinificationSubscriber::getSubscribedEvents()
  4. 8.4 advagg_bundler/src/EventSubscriber/MinificationSubscriber.php \Drupal\advagg_bundler\EventSubscriber\MinificationSubscriber::getSubscribedEvents()
Same name and namespace in other branches
  1. 8.3 advagg_js_minify/src/EventSubscriber/MinificationSubscriber.php \Drupal\advagg_js_minify\EventSubscriber\MinificationSubscriber::getSubscribedEvents()
  2. 8.3 advagg_bundler/src/EventSubscriber/MinificationSubscriber.php \Drupal\advagg_js_minify\EventSubscriber\MinificationSubscriber::getSubscribedEvents()

File

advagg_js_minify/src/EventSubscriber/MinificationSubscriber.php, line 47

Class

MinificationSubscriber
Subscribe to asset optimization events and minify assets.

Namespace

Drupal\advagg_js_minify\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    AssetOptimizationEvent::JS => [
      'minify',
      0,
    ],
  ];
}