public function Payment::getPaymentMethodId in Commerce Core 8.2
Gets the payment method ID.
Return value
int|null The payment method ID, or null if unknown.
Overrides PaymentInterface::getPaymentMethodId
File
- modules/
payment/ src/ Entity/ Payment.php, line 117
Class
- Payment
- Defines the payment entity class.
Namespace
Drupal\commerce_payment\EntityCode
public function getPaymentMethodId() {
return $this
->get('payment_method')->target_id;
}