public function PaymentMethod::getPlugin in Ubercart 8.4
Returns the plugin instance.
Return value
\Drupal\uc_payment\PaymentMethodPluginInterface The plugin instance for this payment method.
Overrides PaymentMethodInterface::getPlugin
File
- payment/
uc_payment/ src/ Entity/ PaymentMethod.php, line 123
Class
- PaymentMethod
- Defines a configured payment method.
Namespace
Drupal\uc_payment\EntityCode
public function getPlugin() {
return \Drupal::service('plugin.manager.uc_payment.method')
->createInstance($this->plugin, $this->settings);
}