Same filename in this branch
  1. 8.x-2.x advagg_mod/src/EventSubscriber/InitSubscriber.php
Same filename and directory in other branches
  1. 5.0.x advagg_mod/src/EventSubscriber/InitSubscriber.php
  2. 6.0.x advagg_mod/src/EventSubscriber/InitSubscriber.php
  3. 8.x-3.x advagg_mod/src/EventSubscriber/InitSubscriber.php
  4. 8.x-4.x advagg_mod/src/EventSubscriber/InitSubscriber.php

Namespace

Drupal\advagg_bundler\EventSubscriber

File

advagg_bundler/src/EventSubscriber/InitSubscriber.php

View source
<?php

namespace Drupal\advagg_bundler\EventSubscriber;

use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

/**
 * Set the AdvAgg setting core_groups to FALSE if bundler is enabled.
 */
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;
        }
    }

}

Classes

Title Deprecated Summary
InitSubscriber Set the AdvAgg setting core_groups to FALSE if bundler is enabled.