You are here

public function SalesforceDeleteAllowedEvent::disallowDelete in Salesforce Suite 5.0.x

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

Code

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