You are here

protected function BillingSchedule::getProraterPluginCollection in Commerce Recurring Framework 8

Gets the plugin collection that holds the prorater plugin.

Ensures the plugin collection is initialized before returning it.

Return value

\Drupal\commerce\CommerceSinglePluginCollection The plugin collection.

1 call to BillingSchedule::getProraterPluginCollection()
BillingSchedule::getPluginCollections in src/Entity/BillingSchedule.php
Gets the plugin collections used by this object.

File

src/Entity/BillingSchedule.php, line 345

Class

BillingSchedule
Defines the billing schedule entity class.

Namespace

Drupal\commerce_recurring\Entity

Code

protected function getProraterPluginCollection() {
  if (!$this->proraterPluginCollection) {
    $plugin_manager = \Drupal::service('plugin.manager.commerce_prorater');
    $this->proraterPluginCollection = new CommerceSinglePluginCollection($plugin_manager, $this->prorater, $this->proraterConfiguration, $this->id);
  }
  return $this->proraterPluginCollection;
}