public static function FedExEventSubscriber::getSubscribedEvents in Commerce FedEx 8
Same name in this branch
- 8 modules/dry_ice/src/EventSubscriber/FedExEventSubscriber.php \Drupal\commerce_fedex_dry_ice\EventSubscriber\FedExEventSubscriber::getSubscribedEvents()
- 8 modules/dangerous/src/EventSubscriber/FedExEventSubscriber.php \Drupal\commerce_fedex_dangerous\EventSubscriber\FedExEventSubscriber::getSubscribedEvents()
Function getSubscribedEvents.
Return value
array The subscribed events.
File
- modules/
dangerous/ src/ EventSubscriber/ FedExEventSubscriber.php, line 34
Class
- FedExEventSubscriber
- Provides a FedEx event subscriber.
Namespace
Drupal\commerce_fedex_dangerous\EventSubscriberCode
public static function getSubscribedEvents() {
$events = [];
$events[CommerceFedExEvents::BEFORE_RATE_REQUEST][] = [
'onBeforeRateRequest',
];
return $events;
}