public function SalesforcePushParamsEvent::__construct in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 modules/salesforce_mapping/src/Event/SalesforcePushParamsEvent.php \Drupal\salesforce_mapping\Event\SalesforcePushParamsEvent::__construct()
- 8.3 modules/salesforce_mapping/src/Event/SalesforcePushParamsEvent.php \Drupal\salesforce_mapping\Event\SalesforcePushParamsEvent::__construct()
SalesforcePushParamsEvent constructor.
Parameters
\Drupal\salesforce_mapping\Entity\MappedObjectInterface $mapped_object: Mapped object.
\Drupal\salesforce_mapping\PushParams $params: Push params.
Overrides SalesforcePushEvent::__construct
File
- modules/
salesforce_mapping/ src/ Event/ SalesforcePushParamsEvent.php, line 28
Class
- SalesforcePushParamsEvent
- Push params event.
Namespace
Drupal\salesforce_mapping\EventCode
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;
}