You are here

public function Webhook::access in PayPal for Payment 8

Same name and namespace in other branches
  1. 2.0.x src/Controller/Webhook.php \Drupal\paypal_payment\Controller\Webhook::access()

Parameters

$payment_method_id:

Return value

\Drupal\Core\Access\AccessResult

1 string reference to 'Webhook::access'
paypal_payment.routing.yml in ./paypal_payment.routing.yml
paypal_payment.routing.yml

File

src/Controller/Webhook.php, line 51

Class

Webhook
Handles the "webhook" route.

Namespace

Drupal\paypal_payment\Controller

Code

public function access($payment_method_id) : AccessResult {
  return AccessResult::allowedIf($this
    ->verify($payment_method_id));
}