public static function RequestTranslationSubscriber::getSubscribedEvents in TMGMT Translator Smartling 8
Same name and namespace in other branches
- 8.4 src/EventSubscriber/RequestTranslationSubscriber.php \Drupal\tmgmt_smartling\EventSubscriber\RequestTranslationSubscriber::getSubscribedEvents()
- 8.2 src/EventSubscriber/RequestTranslationSubscriber.php \Drupal\tmgmt_smartling\EventSubscriber\RequestTranslationSubscriber::getSubscribedEvents()
- 8.3 src/EventSubscriber/RequestTranslationSubscriber.php \Drupal\tmgmt_smartling\EventSubscriber\RequestTranslationSubscriber::getSubscribedEvents()
File
- src/
EventSubscriber/ RequestTranslationSubscriber.php, line 53
Class
Namespace
Drupal\tmgmt_smartling\EventSubscriberCode
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;
}