public function Webhook::access in PayPal for Payment 8
Same name and namespace in other branches
- 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'
File
- src/
Controller/ Webhook.php, line 51
Class
- Webhook
- Handles the "webhook" route.
Namespace
Drupal\paypal_payment\ControllerCode
public function access($payment_method_id) : AccessResult {
return AccessResult::allowedIf($this
->verify($payment_method_id));
}