You are here

public function Subscription::getPaymentMethod in Commerce Recurring Framework 8

Gets the payment method.

Return value

\Drupal\commerce_payment\Entity\PaymentMethodInterface|null The payment method, or NULL.

Overrides SubscriptionInterface::getPaymentMethod

File

src/Entity/Subscription.php, line 170

Class

Subscription
Defines the subscription entity.

Namespace

Drupal\commerce_recurring\Entity

Code

public function getPaymentMethod() {
  return $this
    ->get('payment_method')->entity;
}