protected function BillingSchedule::getBillingSchedulePluginCollection in Commerce Recurring Framework 8
Gets the plugin collection that holds the billing schedule plugin.
Ensures the plugin collection is initialized before returning it.
Return value
\Drupal\commerce\CommerceSinglePluginCollection The plugin collection.
1 call to BillingSchedule::getBillingSchedulePluginCollection()
- BillingSchedule::getPluginCollections in src/
Entity/ BillingSchedule.php - Gets the plugin collections used by this object.
File
- src/
Entity/ BillingSchedule.php, line 329
Class
- BillingSchedule
- Defines the billing schedule entity class.
Namespace
Drupal\commerce_recurring\EntityCode
protected function getBillingSchedulePluginCollection() {
if (!$this->billingSchedulePluginCollection) {
$plugin_manager = \Drupal::service('plugin.manager.commerce_billing_schedule');
$this->billingSchedulePluginCollection = new CommerceSinglePluginCollection($plugin_manager, $this->plugin, $this->configuration, $this->id);
}
return $this->billingSchedulePluginCollection;
}