You are here

public function SalesforcePushOpEvent::__construct in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 modules/salesforce_mapping/src/Event/SalesforcePushOpEvent.php \Drupal\salesforce_mapping\Event\SalesforcePushOpEvent::__construct()
  2. 5.0.x modules/salesforce_mapping/src/Event/SalesforcePushOpEvent.php \Drupal\salesforce_mapping\Event\SalesforcePushOpEvent::__construct()

SalesforcePushOpEvent dispatched when PushParams are not available.

Parameters

\Drupal\salesforce_mapping\Entity\MappedObjectInterface $mapped_object: The mapped object.

string $op: One of Drupal\salesforce_mapping\MappingConstants:: SALESFORCE_MAPPING_SYNC_DRUPAL_CREATE SALESFORCE_MAPPING_SYNC_DRUPAL_UPDATE SALESFORCE_MAPPING_SYNC_DRUPAL_DELETE.

Overrides SalesforcePushEvent::__construct

1 call to SalesforcePushOpEvent::__construct()
SalesforcePushAllowedEvent::__construct in modules/salesforce_mapping/src/Event/SalesforcePushAllowedEvent.php
SalesforcePushAllowedEvent dispatched before building PushParams.
1 method overrides SalesforcePushOpEvent::__construct()
SalesforcePushAllowedEvent::__construct in modules/salesforce_mapping/src/Event/SalesforcePushAllowedEvent.php
SalesforcePushAllowedEvent dispatched before building PushParams.

File

modules/salesforce_mapping/src/Event/SalesforcePushOpEvent.php, line 36

Class

SalesforcePushOpEvent
Push op event.

Namespace

Drupal\salesforce_mapping\Event

Code

public function __construct(MappedObjectInterface $mapped_object, $op) {
  parent::__construct($mapped_object);
  $this->op = $op;
}