You are here

class LanguageHierarchyConfigEventSubscriber in Language Hierarchy 8

Same name and namespace in other branches
  1. 2.x src/EventSubscriber/LanguageHierarchyConfigEventSubscriber.php \Drupal\language_hierarchy\EventSubscriber\LanguageHierarchyConfigEventSubscriber

Class LanguageHierarchyConfigEventSubscriber.

@package Drupal\language_hierarchy

Hierarchy

Expanded class hierarchy of LanguageHierarchyConfigEventSubscriber

1 string reference to 'LanguageHierarchyConfigEventSubscriber'
language_hierarchy.services.yml in ./language_hierarchy.services.yml
language_hierarchy.services.yml
1 service uses LanguageHierarchyConfigEventSubscriber
language_hierarchy.config_event_subscriber in ./language_hierarchy.services.yml
Drupal\language_hierarchy\EventSubscriber\LanguageHierarchyConfigEventSubscriber

File

src/EventSubscriber/LanguageHierarchyConfigEventSubscriber.php, line 14

Namespace

Drupal\language_hierarchy\EventSubscriber
View 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

Namesort descending Modifiers Type Description Overrides
LanguageHierarchyConfigEventSubscriber::getSubscribedEvents public static function Returns an array of event names this subscriber wants to listen to.
LanguageHierarchyConfigEventSubscriber::onConfigImport public function This method is called when the config.importer.import event is dispatched.