You are here

public static function NodeTranslationExceptionSubscriber::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/src/EventSubscriber/NodeTranslationExceptionSubscriber.php \Drupal\node\EventSubscriber\NodeTranslationExceptionSubscriber::getSubscribedEvents()
  2. 9 core/modules/node/src/EventSubscriber/NodeTranslationExceptionSubscriber.php \Drupal\node\EventSubscriber\NodeTranslationExceptionSubscriber::getSubscribedEvents()

File

core/modules/node/src/EventSubscriber/NodeTranslationExceptionSubscriber.php, line 120

Class

NodeTranslationExceptionSubscriber
Redirect node translations that have been consolidated by migration.

Namespace

Drupal\node\EventSubscriber

Code

public static function getSubscribedEvents() : array {
  $events = [];
  $events[KernelEvents::EXCEPTION] = [
    'onException',
  ];
  return $events;
}