You are here

public function PushController::endpoint in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 modules/salesforce_push/src/PushController.php \Drupal\salesforce_push\PushController::endpoint()
  2. 5.0.x modules/salesforce_push/src/PushController.php \Drupal\salesforce_push\PushController::endpoint()

Page callback to process the entire push queue.

1 string reference to 'PushController::endpoint'
salesforce_push.routing.yml in modules/salesforce_push/salesforce_push.routing.yml
modules/salesforce_push/salesforce_push.routing.yml

File

modules/salesforce_push/src/PushController.php, line 59

Class

PushController
Push controller.

Namespace

Drupal\salesforce_push

Code

public function endpoint() {

  // "Access Denied" if standalone global config not enabled.
  if (!$this
    ->config('salesforce.settings')
    ->get('standalone')) {
    throw new AccessDeniedHttpException();
  }
  $this->pushQueue
    ->processQueues();
  return new Response('', 204);
}