You are here

public function EntityWithPaymentGatewayInterface::getPaymentGateway in Commerce Core 8.2

Gets the payment gateway.

Return value

\Drupal\commerce_payment\Entity\PaymentGatewayInterface|null The payment gateway entity, or null if unknown.

2 methods override EntityWithPaymentGatewayInterface::getPaymentGateway()
Payment::getPaymentGateway in modules/payment/src/Entity/Payment.php
Gets the payment gateway.
PaymentMethod::getPaymentGateway in modules/payment/src/Entity/PaymentMethod.php
Gets the payment gateway.

File

modules/payment/src/Entity/EntityWithPaymentGatewayInterface.php, line 18

Class

EntityWithPaymentGatewayInterface
Defines the interface for entities managed by a payment gateway.

Namespace

Drupal\commerce_payment\Entity

Code

public function getPaymentGateway();