You are here

public function Redirect::access in PayPal for Payment 8

Same name and namespace in other branches
  1. 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'
paypal_payment.routing.yml in ./paypal_payment.routing.yml
paypal_payment.routing.yml

File

src/Controller/Redirect.php, line 51

Class

Redirect
Handles the "redirect" route.

Namespace

Drupal\paypal_payment\Controller

Code

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