You are here

public function SalesforcePushAllowedEvent::isPushAllowed in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 modules/salesforce_mapping/src/Event/SalesforcePushAllowedEvent.php \Drupal\salesforce_mapping\Event\SalesforcePushAllowedEvent::isPushAllowed()
  2. 5.0.x modules/salesforce_mapping/src/Event/SalesforcePushAllowedEvent.php \Drupal\salesforce_mapping\Event\SalesforcePushAllowedEvent::isPushAllowed()

Returns FALSE if push is disallowed.

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

Return value

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

File

modules/salesforce_mapping/src/Event/SalesforcePushAllowedEvent.php, line 46

Class

SalesforcePushAllowedEvent
Push allowed event.

Namespace

Drupal\salesforce_mapping\Event

Code

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