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