You are here

public function SalesforceExampleSubscriber::pushFail 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::pushFail()
  2. 8.3 modules/salesforce_example/src/EventSubscriber/SalesforceExampleSubscriber.php \Drupal\salesforce_example\EventSubscriber\SalesforceExampleSubscriber::pushFail()

SalesforcePushParamsEvent push fail callback.

Parameters

\Drupal\salesforce_mapping\Event\SalesforcePushOpEvent $event: The event.

File

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

Class

SalesforceExampleSubscriber
Class SalesforceExampleSubscriber.

Namespace

Drupal\salesforce_example\EventSubscriber

Code

public function pushFail(SalesforcePushOpEvent $event) {
  \Drupal::messenger()
    ->addStatus('push fail example: ' . $event
    ->getMappedObject()
    ->id());
}