public function SalesforcePushEvent::__construct in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 modules/salesforce_mapping/src/Event/SalesforcePushEvent.php \Drupal\salesforce_mapping\Event\SalesforcePushEvent::__construct()
- 5.0.x modules/salesforce_mapping/src/Event/SalesforcePushEvent.php \Drupal\salesforce_mapping\Event\SalesforcePushEvent::__construct()
SalesforcePushEvent constructor.
Parameters
\Drupal\salesforce_mapping\Entity\MappedObjectInterface $mappedObject: The mapped object.
2 calls to SalesforcePushEvent::__construct()
- SalesforcePushOpEvent::__construct in modules/
salesforce_mapping/ src/ Event/ SalesforcePushOpEvent.php - SalesforcePushOpEvent dispatched when PushParams are not available.
- SalesforcePushParamsEvent::__construct in modules/
salesforce_mapping/ src/ Event/ SalesforcePushParamsEvent.php - SalesforcePushParamsEvent constructor.
2 methods override SalesforcePushEvent::__construct()
- SalesforcePushOpEvent::__construct in modules/
salesforce_mapping/ src/ Event/ SalesforcePushOpEvent.php - SalesforcePushOpEvent dispatched when PushParams are not available.
- SalesforcePushParamsEvent::__construct in modules/
salesforce_mapping/ src/ Event/ SalesforcePushParamsEvent.php - SalesforcePushParamsEvent constructor.
File
- modules/
salesforce_mapping/ src/ Event/ SalesforcePushEvent.php, line 40
Class
- SalesforcePushEvent
- Push event.
Namespace
Drupal\salesforce_mapping\EventCode
public function __construct(MappedObjectInterface $mappedObject) {
$this->mappedObject = $mappedObject;
$this->entity = $mappedObject ? $mappedObject
->getMappedEntity() : NULL;
$this->mapping = $mappedObject ? $mappedObject
->getMapping() : NULL;
}