You are here

public static function SalesforceLoggerSubscriber::getSubscribedEvents in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 modules/salesforce_logger/src/EventSubscriber/SalesforceLoggerSubscriber.php \Drupal\salesforce_logger\EventSubscriber\SalesforceLoggerSubscriber::getSubscribedEvents()
  2. 5.0.x modules/salesforce_logger/src/EventSubscriber/SalesforceLoggerSubscriber.php \Drupal\salesforce_logger\EventSubscriber\SalesforceLoggerSubscriber::getSubscribedEvents()

File

modules/salesforce_logger/src/EventSubscriber/SalesforceLoggerSubscriber.php, line 41

Class

SalesforceLoggerSubscriber
Class SalesforceLoggerSubscriber.

Namespace

Drupal\salesforce_logger\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events = [
    SalesforceEvents::ERROR => 'salesforceException',
    SalesforceEvents::WARNING => 'salesforceException',
    SalesforceEvents::NOTICE => 'salesforceException',
  ];
  return $events;
}