class SalesforcePushParamsEvent in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 modules/salesforce_mapping/src/Event/SalesforcePushParamsEvent.php \Drupal\salesforce_mapping\Event\SalesforcePushParamsEvent
- 5.0.x modules/salesforce_mapping/src/Event/SalesforcePushParamsEvent.php \Drupal\salesforce_mapping\Event\SalesforcePushParamsEvent
Push params event.
Hierarchy
- class \Drupal\salesforce\Event\SalesforceBaseEvent extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\salesforce_mapping\Event\SalesforcePushEvent
- class \Drupal\salesforce_mapping\Event\SalesforcePushParamsEvent
- class \Drupal\salesforce_mapping\Event\SalesforcePushEvent
Expanded class hierarchy of SalesforcePushParamsEvent
3 files declare their use of SalesforcePushParamsEvent
- MappedObject.php in modules/
salesforce_mapping/ src/ Entity/ MappedObject.php - PullBase.php in modules/
salesforce_pull/ src/ Plugin/ QueueWorker/ PullBase.php - SalesforceExampleSubscriber.php in modules/
salesforce_example/ src/ EventSubscriber/ SalesforceExampleSubscriber.php
File
- modules/
salesforce_mapping/ src/ Event/ SalesforcePushParamsEvent.php, line 11
Namespace
Drupal\salesforce_mapping\EventView source
class SalesforcePushParamsEvent extends SalesforcePushEvent {
/**
* Push params.
*
* @var \Drupal\salesforce_mapping\PushParams
*/
protected $params;
/**
* SalesforcePushParamsEvent constructor.
*
* @param \Drupal\salesforce_mapping\Entity\MappedObjectInterface $mapped_object
* Mapped object.
* @param \Drupal\salesforce_mapping\PushParams $params
* Push params.
*/
public function __construct(MappedObjectInterface $mapped_object, PushParams $params) {
parent::__construct($mapped_object);
$this->params = $params;
$this->entity = $params ? $params
->getDrupalEntity() : NULL;
$this->mapping = $params ? $params
->getMapping() : NULL;
}
/**
* Getter.
*
* @return \Drupal\salesforce_mapping\PushParams
* The push param data to be sent to Salesforce.
*/
public function getParams() {
return $this->params;
}
}
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. | |
SalesforcePushParamsEvent:: |
protected | property | Push params. | |
SalesforcePushParamsEvent:: |
public | function | Getter. | |
SalesforcePushParamsEvent:: |
public | function |
SalesforcePushParamsEvent constructor. Overrides SalesforcePushEvent:: |