function EditorConfigTranslationSubscriber::getSubscribedEvents

Same name in other branches
  1. 9 core/modules/editor/src/EventSubscriber/EditorConfigTranslationSubscriber.php \Drupal\editor\EventSubscriber\EditorConfigTranslationSubscriber::getSubscribedEvents()
  2. 10 core/modules/editor/src/EventSubscriber/EditorConfigTranslationSubscriber.php \Drupal\editor\EventSubscriber\EditorConfigTranslationSubscriber::getSubscribedEvents()
  3. 11.x core/modules/editor/src/EventSubscriber/EditorConfigTranslationSubscriber.php \Drupal\editor\EventSubscriber\EditorConfigTranslationSubscriber::getSubscribedEvents()

File

core/modules/editor/src/EventSubscriber/EditorConfigTranslationSubscriber.php, line 36

Class

EditorConfigTranslationSubscriber
Adds configuration names to configuration mapper on POPULATE_MAPPER event.

Namespace

Drupal\editor\EventSubscriber

Code

public static function getSubscribedEvents() {
    $events = [];
    if (class_exists('Drupal\\config_translation\\Event\\ConfigTranslationEvents')) {
        $events[ConfigTranslationEvents::POPULATE_MAPPER][] = [
            'addConfigNames',
        ];
    }
    return $events;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.