You are here

public function PaymentExecuteAccess::getPayment in Payment 8.2

Gets the payment for which execution access is checked.

Return value

\Drupal\payment\Entity\PaymentInterface $payment->getPaymentMethod() contains the method currently configured, but NOT the method that $payment should be tested against, which is $payment_method.

File

src/Event/PaymentExecuteAccess.php, line 72

Class

PaymentExecuteAccess
Provides an event that is dispatched when access is checked for payment execution.

Namespace

Drupal\payment\Event

Code

public function getPayment() {
  return $this->payment;
}