protected function PaymentGateway::getPluginCollection in Commerce Core 8.2
Gets the plugin collection that holds the payment gateway plugin.
Ensures the plugin collection is initialized before returning it.
Return value
\Drupal\commerce\CommerceSinglePluginCollection The plugin collection.
1 call to PaymentGateway::getPluginCollection()
- PaymentGateway::getPluginCollections in modules/
payment/ src/ Entity/ PaymentGateway.php - Gets the plugin collections used by this object.
File
- modules/
payment/ src/ Entity/ PaymentGateway.php, line 263
Class
- PaymentGateway
- Defines the payment gateway entity class.
Namespace
Drupal\commerce_payment\EntityCode
protected function getPluginCollection() {
if (!$this->pluginCollection) {
$plugin_manager = \Drupal::service('plugin.manager.commerce_payment_gateway');
$this->pluginCollection = new CommerceSinglePluginCollection($plugin_manager, $this->plugin, $this->configuration, $this);
}
return $this->pluginCollection;
}