class SalesforcePushOpEvent in Salesforce Suite 8.3
Same name and namespace in other branches
- 8.4 modules/salesforce_mapping/src/Event/SalesforcePushOpEvent.php \Drupal\salesforce_mapping\Event\SalesforcePushOpEvent
- 5.0.x modules/salesforce_mapping/src/Event/SalesforcePushOpEvent.php \Drupal\salesforce_mapping\Event\SalesforcePushOpEvent
Push op event.
Hierarchy
- class \Drupal\salesforce\Event\SalesforceBaseEvent extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\salesforce_mapping\Event\SalesforcePushEvent
- class \Drupal\salesforce_mapping\Event\SalesforcePushOpEvent
- class \Drupal\salesforce_mapping\Event\SalesforcePushEvent
Expanded class hierarchy of SalesforcePushOpEvent
3 files declare their use of SalesforcePushOpEvent
- Rest.php in modules/
salesforce_push/ src/ Plugin/ SalesforcePushQueueProcessor/ Rest.php - SalesforceExampleSubscriber.php in modules/
salesforce_example/ src/ EventSubscriber/ SalesforceExampleSubscriber.php - salesforce_push.module in modules/
salesforce_push/ salesforce_push.module - Push updates to Salesforce when a Drupal entity is updated.
File
- modules/
salesforce_mapping/ src/ Event/ SalesforcePushOpEvent.php, line 10
Namespace
Drupal\salesforce_mapping\EventView source
class SalesforcePushOpEvent extends SalesforcePushEvent {
/**
* The pull operation.
*
* One of:
* \Drupal\salesforce_mapping\MappingConstants::SALESFORCE_MAPPING_SYNC_SF_CREATE
* \Drupal\salesforce_mapping\MappingConstants::SALESFORCE_MAPPING_SYNC_SF_UPDATE
* \Drupal\salesforce_mapping\MappingConstants::SALESFORCE_MAPPING_SYNC_SF_DELETE.
*
* @var string
*/
protected $op;
/**
* SalesforcePushOpEvent dispatched when PushParams are not available.
*
* @param \Drupal\salesforce_mapping\Entity\MappedObjectInterface $mapped_object
* The mapped object.
* @param string $op
* One of
* Drupal\salesforce_mapping\MappingConstants::
* SALESFORCE_MAPPING_SYNC_DRUPAL_CREATE
* SALESFORCE_MAPPING_SYNC_DRUPAL_UPDATE
* SALESFORCE_MAPPING_SYNC_DRUPAL_DELETE.
*/
public function __construct(MappedObjectInterface $mapped_object, $op) {
parent::__construct($mapped_object);
$this->op = $op;
}
/**
* Getter for the pull operation.
*
* One of:
* \Drupal\salesforce_mapping\MappingConstants::SALESFORCE_MAPPING_SYNC_SF_CREATE
* \Drupal\salesforce_mapping\MappingConstants::SALESFORCE_MAPPING_SYNC_SF_UPDATE
* \Drupal\salesforce_mapping\MappingConstants::SALESFORCE_MAPPING_SYNC_SF_DELETE.
*
* @var string
* The op.
*/
public function getOp() {
return $this->op;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SalesforcePushEvent:: |
protected | property | The Drupal entity. | |
SalesforcePushEvent:: |
protected | property | The mapped object. | |
SalesforcePushEvent:: |
protected | property | The mapping. | |
SalesforcePushEvent:: |
public | function | Getter. | |
SalesforcePushEvent:: |
public | function | Getter. | |
SalesforcePushEvent:: |
public | function | Getter. | |
SalesforcePushOpEvent:: |
protected | property | The pull operation. | |
SalesforcePushOpEvent:: |
public | function | Getter for the pull operation. | |
SalesforcePushOpEvent:: |
public | function |
SalesforcePushOpEvent dispatched when PushParams are not available. Overrides SalesforcePushEvent:: |
1 |