You are here

public function SalesforceDeleteAllowedEvent::disallowDelete in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 5.0.x 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\Event

Code

public function disallowDelete() {
  $this->deleteAllowed = FALSE;
  return $this;
}