You are here

public function SalesforcePushAllowedEvent::disallowPush in Salesforce Suite 8.3

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

Stop Salesforce record from being pushed.

Return value

$this

File

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

Class

SalesforcePushAllowedEvent
Push allowed event.

Namespace

Drupal\salesforce_mapping\Event

Code

public function disallowPush() {
  $this->pushAllowed = FALSE;
  return $this;
}