class LanguageHierarchyConfigEventSubscriber in Language Hierarchy 2.x
Same name and namespace in other branches
- 8 src/EventSubscriber/LanguageHierarchyConfigEventSubscriber.php \Drupal\language_hierarchy\EventSubscriber\LanguageHierarchyConfigEventSubscriber
Class LanguageHierarchyConfigEventSubscriber.
@package Drupal\language_hierarchy
Hierarchy
- class \Drupal\language_hierarchy\EventSubscriber\LanguageHierarchyConfigEventSubscriber implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
Expanded class hierarchy of LanguageHierarchyConfigEventSubscriber
1 string reference to 'LanguageHierarchyConfigEventSubscriber'
1 service uses LanguageHierarchyConfigEventSubscriber
File
- src/
EventSubscriber/ LanguageHierarchyConfigEventSubscriber.php, line 14
Namespace
Drupal\language_hierarchy\EventSubscriberView source
class LanguageHierarchyConfigEventSubscriber implements EventSubscriberInterface {
/**
* This method is called when the config.importer.import event is dispatched.
*
* @param \Symfony\Component\EventDispatcher\Event $event
* The config import event.
*/
public function onConfigImport(Event $event) {
language_hierarchy_update_priorities();
}
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
$events[ConfigEvents::IMPORT] = [
'onConfigImport',
];
return $events;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LanguageHierarchyConfigEventSubscriber:: |
public static | function | ||
LanguageHierarchyConfigEventSubscriber:: |
public | function | This method is called when the config.importer.import event is dispatched. |