You are here

public static function RequestTranslationSubscriber::getSubscribedEvents in TMGMT Translator Smartling 8.2

Same name and namespace in other branches
  1. 8.4 src/EventSubscriber/RequestTranslationSubscriber.php \Drupal\tmgmt_smartling\EventSubscriber\RequestTranslationSubscriber::getSubscribedEvents()
  2. 8 src/EventSubscriber/RequestTranslationSubscriber.php \Drupal\tmgmt_smartling\EventSubscriber\RequestTranslationSubscriber::getSubscribedEvents()
  3. 8.3 src/EventSubscriber/RequestTranslationSubscriber.php \Drupal\tmgmt_smartling\EventSubscriber\RequestTranslationSubscriber::getSubscribedEvents()

File

src/EventSubscriber/RequestTranslationSubscriber.php, line 54

Class

RequestTranslationSubscriber

Namespace

Drupal\tmgmt_smartling\EventSubscriber

Code

public static function getSubscribedEvents() {

  // For this example I am using KernelEvents constants (see below a full list).
  $events = [];
  $events[RequestTranslationEvent::REQUEST_TRANSLATION_EVENT][] = [
    'onUploadRequest',
  ];
  return $events;
}