You are here

public function SalesforceDeleteAllowedEvent::isDeleteAllowed 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::isDeleteAllowed()

Returns FALSE if delete is disallowed.

Note: a subscriber cannot "force" a delete when any other subscriber has disallowed it.

Return value

false|null Returns FALSE if DELETE_ALLOWED event has been fired, and any subscriber wants to prevent delete. Otherwise, returns NULL.

File

modules/salesforce_mapping/src/Event/SalesforceDeleteAllowedEvent.php, line 86

Class

SalesforceDeleteAllowedEvent
Delete allowed event.

Namespace

Drupal\salesforce_mapping\Event

Code

public function isDeleteAllowed() {
  return $this->deleteAllowed === FALSE ? FALSE : NULL;
}