public function SalesforceDeleteAllowedEvent::disallowDelete in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 modules/salesforce_mapping/src/Event/SalesforceDeleteAllowedEvent.php \Drupal\salesforce_mapping\Event\SalesforceDeleteAllowedEvent::disallowDelete()
Stop Salesforce record from being deleted.
Return value
$this
File
- modules/
salesforce_mapping/ src/ Event/ SalesforceDeleteAllowedEvent.php, line 95
Class
- SalesforceDeleteAllowedEvent
- Delete allowed event.
Namespace
Drupal\salesforce_mapping\EventCode
public function disallowDelete() {
$this->deleteAllowed = FALSE;
return $this;
}