public function Subscription::getPaymentMethodId in Commerce Recurring Framework 8
Gets the payment method ID.
Return value
int|null The payment method ID, or NULL.
Overrides SubscriptionInterface::getPaymentMethodId
File
- src/
Entity/ Subscription.php, line 185
Class
- Subscription
- Defines the subscription entity.
Namespace
Drupal\commerce_recurring\EntityCode
public function getPaymentMethodId() {
return $this
->get('payment_method')->target_id;
}