public function Payment::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.
Overrides EntityWithPaymentGatewayInterface::getPaymentGateway
1 call to Payment::getPaymentGateway()
- Payment::preSave in modules/
payment/ src/ Entity/ Payment.php - Acts on an entity before the presave hook is invoked.
File
- modules/
payment/ src/ Entity/ Payment.php, line 89
Class
- Payment
- Defines the payment entity class.
Namespace
Drupal\commerce_payment\EntityCode
public function getPaymentGateway() {
return $this
->get('payment_gateway')->entity;
}