public function Redirect::access in PayPal for Payment 8
Same name and namespace in other branches
- 2.0.x src/Controller/Redirect.php \Drupal\paypal_payment\Controller\Redirect::access()
Parameters
\Drupal\payment\Entity\PaymentInterface $payment:
Return value
\Drupal\Core\Access\AccessResult
1 string reference to 'Redirect::access'
File
- src/
Controller/ Redirect.php, line 51
Class
- Redirect
- Handles the "redirect" route.
Namespace
Drupal\paypal_payment\ControllerCode
public function access(PaymentInterface $payment) : AccessResult {
return AccessResult::allowedIf($this
->verify($payment));
}