You are here

public function Unavailable::setPayment in Payment 8.2

Gets the payment this payment method is for.

Parameters

\Drupal\payment\Entity\PaymentInterface $payment:

Return value

$this

Overrides PaymentAwareInterface::setPayment

File

src/Plugin/Payment/Method/Unavailable.php, line 111

Class

Unavailable
A payment method controller that essentially disables payment methods.

Namespace

Drupal\payment\Plugin\Payment\Method

Code

public function setPayment(PaymentInterface $payment) {
  $this->payment = $payment;
  return $this;
}