You are here

class InitSubscriber in Advanced CSS/JS Aggregation 8.2

Same name in this branch
  1. 8.2 advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber
  2. 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\EventSubscriber
View 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

Namesort descending Modifiers Type Description Overrides
InitSubscriber::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to.
InitSubscriber::onEvent public function Event Response.