You are here

public static function SalesforceExampleSubscriber::getSubscribedEvents in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/salesforce_example/src/EventSubscriber/SalesforceExampleSubscriber.php \Drupal\salesforce_example\EventSubscriber\SalesforceExampleSubscriber::getSubscribedEvents()
  2. 8.3 modules/salesforce_example/src/EventSubscriber/SalesforceExampleSubscriber.php \Drupal\salesforce_example\EventSubscriber\SalesforceExampleSubscriber::getSubscribedEvents()

File

modules/salesforce_example/src/EventSubscriber/SalesforceExampleSubscriber.php, line 213

Class

SalesforceExampleSubscriber
Class SalesforceExampleSubscriber.

Namespace

Drupal\salesforce_example\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events = [
    SalesforceEvents::PUSH_ALLOWED => 'pushAllowed',
    SalesforceEvents::PUSH_PARAMS => 'pushParamsAlter',
    SalesforceEvents::PUSH_SUCCESS => 'pushSuccess',
    SalesforceEvents::PUSH_FAIL => 'pushFail',
    SalesforceEvents::PULL_PRESAVE => 'pullPresave',
    SalesforceEvents::PULL_QUERY => 'pullQueryAlter',
    SalesforceEvents::PULL_PREPULL => 'pullPrepull',
  ];
  return $events;
}