You are here

public function PaymentInterface::setPaymentMethod in Payment 8.2

Gets the payment method plugin.

Parameters

\Drupal\payment\Plugin\Payment\Method\PaymentMethodInterface:

Return value

static

1 method overrides PaymentInterface::setPaymentMethod()
Payment::setPaymentMethod in src/Entity/Payment.php
Gets the payment method plugin.

File

src/Entity/PaymentInterface.php, line 85

Class

PaymentInterface
Defines a payment entity type .

Namespace

Drupal\payment\Entity

Code

public function setPaymentMethod(PluginPaymentMethodInterface $payment_method);