You are here

public static function CompileSubscriber::getSubscribedEvents in Theme Compiler 2.0.x

File

src/EventSubscriber/CompileSubscriber.php, line 115

Class

CompileSubscriber
An event subscriber used to trigger (re)compilation of this module's assets.

Namespace

Drupal\theme_compiler\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    ConfigEvents::DELETE => 'onConfigChange',
    ConfigEvents::SAVE => 'onConfigChange',
    OnDemandCompileEvent::class => 'compile',
  ];
}