You are here

public function SalesforcePushAllowedEvent::__construct in Salesforce Suite 5.0.x

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

SalesforcePushAllowedEvent dispatched before building PushParams.

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 SalesforcePushOpEvent::__construct

File

modules/salesforce_mapping/src/Event/SalesforcePushAllowedEvent.php, line 31

Class

SalesforcePushAllowedEvent
Push allowed event.

Namespace

Drupal\salesforce_mapping\Event

Code

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