You are here

public static function EdgeConfigTranslationChangeSubscriber::getSubscribedEvents in Apigee Edge 8

File

src/EventSubscriber/EdgeConfigTranslationChangeSubscriber.php, line 38

Class

EdgeConfigTranslationChangeSubscriber
Clears caches when an Apigee Edge related config translation gets updated.

Namespace

Drupal\apigee_edge\EventSubscriber

Code

public static function getSubscribedEvents() {
  if (class_exists('\\Drupal\\language\\Config\\LanguageConfigOverrideEvents')) {
    return [
      LanguageConfigOverrideEvents::SAVE_OVERRIDE => 'clearCache',
      LanguageConfigOverrideEvents::DELETE_OVERRIDE => 'clearCache',
    ];
  }
  return [];
}