You are here

constant SalesforceEvents::PULL_PREPULL in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 src/Event/SalesforceEvents.php \Drupal\salesforce\Event\SalesforceEvents::PULL_PREPULL
  2. 5.0.x src/Event/SalesforceEvents.php \Drupal\salesforce\Event\SalesforceEvents::PULL_PREPULL

Dispatched before mapping entity fields for a pull.

Can be used, for example, to alter SF object retrieved from Salesforce or to assign a different Drupal entity.

Previously hook_salesforce_pull_mapping_object_alter().

Subscribers receive a Drupal\salesforce_mapping\Event\SalesforcePullEvent instance. Listeners should throw an exception to prevent an item from being pulled, per Drupal\Core\Queue\QueueWorkerInterface.

See also

\Drupal\Core\Queue\QueueWorkerInterface

File

src/Event/SalesforceEvents.php, line 121

Class

SalesforceEvents
Defines events for Salesforce.

Namespace

Drupal\salesforce\Event

Code

const PULL_PREPULL = 'salesforce.pull_prepull';