You are here

public function PaymentGateway::getPlugin in Commerce Core 8.2

Gets the payment gateway plugin.

Return value

\Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\PaymentGatewayInterface The payment gateway plugin.

Overrides PaymentGatewayInterface::getPlugin

File

modules/payment/src/Entity/PaymentGateway.php, line 144

Class

PaymentGateway
Defines the payment gateway entity class.

Namespace

Drupal\commerce_payment\Entity

Code

public function getPlugin() {
  return $this
    ->getPluginCollection()
    ->get($this->plugin);
}