abstract class SalesforcePushEvent 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
- 5.0.x modules/salesforce_mapping/src/Event/SalesforcePushEvent.php \Drupal\salesforce_mapping\Event\SalesforcePushEvent
Push event.
Hierarchy
- class \Drupal\salesforce\Event\SalesforceBaseEvent extends \Symfony\Component\EventDispatcher\Event
- class \Drupal\salesforce_mapping\Event\SalesforcePushEvent
Expanded class hierarchy of SalesforcePushEvent
File
- modules/
salesforce_mapping/ src/ Event/ SalesforcePushEvent.php, line 11
Namespace
Drupal\salesforce_mapping\EventView source
abstract class SalesforcePushEvent extends SalesforceBaseEvent {
/**
* The mapping.
*
* @var \Drupal\salesforce_mapping\Entity\SalesforceMappingInterface
*/
protected $mapping;
/**
* The mapped object.
*
* @var \Drupal\salesforce_mapping\Entity\MappedObjectInterface
*/
protected $mappedObject;
/**
* The Drupal entity.
*
* @var \Drupal\Core\Entity\FieldableEntityInterface
*/
protected $entity;
/**
* SalesforcePushEvent constructor.
*
* @param \Drupal\salesforce_mapping\Entity\MappedObjectInterface $mappedObject
* The mapped object.
*/
public function __construct(MappedObjectInterface $mappedObject) {
$this->mappedObject = $mappedObject;
$this->entity = $mappedObject ? $mappedObject
->getMappedEntity() : NULL;
$this->mapping = $mappedObject ? $mappedObject
->getMapping() : NULL;
}
/**
* Getter.
*
* @return \Drupal\Core\Entity\FieldableEntityInterface
* The entity.
*/
public function getEntity() {
return $this->entity;
}
/**
* Getter.
*
* @return \Drupal\salesforce_mapping\Entity\SalesforceMappingInterface
* The mapping.
*/
public function getMapping() {
return $this->mapping;
}
/**
* Getter.
*
* @return \Drupal\salesforce_mapping\Entity\MappedObjectInterface
* The mapped object.
*/
public function getMappedObject() {
return $this->mappedObject;
}
}
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. | |
SalesforcePushEvent:: |
public | function | SalesforcePushEvent constructor. | 2 |