function EditorConfigTranslationSubscriber::getSubscribedEvents
Same name in other branches
- 8.9.x core/modules/editor/src/EventSubscriber/EditorConfigTranslationSubscriber.php \Drupal\editor\EventSubscriber\EditorConfigTranslationSubscriber::getSubscribedEvents()
- 10 core/modules/editor/src/EventSubscriber/EditorConfigTranslationSubscriber.php \Drupal\editor\EventSubscriber\EditorConfigTranslationSubscriber::getSubscribedEvents()
- 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\EventSubscriberCode
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.