constant SalesforceEvents::PULL_PRESAVE in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 src/Event/SalesforceEvents.php \Drupal\salesforce\Event\SalesforceEvents::PULL_PRESAVE
- 5.0.x src/Event/SalesforceEvents.php \Drupal\salesforce\Event\SalesforceEvents::PULL_PRESAVE
Dispatched immediately prior to saving the pulled Drupal entity.
After all fields have been mapped and values assigned, can be used, for example, to override mapping fields or implement data transformations. Final chance for subscribers to prevent creation or alter a Drupal entity during pull. Post-save operations (insert/update) should rely on hook_entity_update or hook_entity_insert().
Previously hook_salesforce_pull_entity_presave().
Subscribers receive a Drupal\salesforce_mapping\Event\SalesforcePullEvent instance.
File
- src/
Event/ SalesforceEvents.php, line 171
Class
- SalesforceEvents
- Defines events for Salesforce.
Namespace
Drupal\salesforce\EventCode
const PULL_PRESAVE = 'salesforce.pull_presave';