You are here

public function BillingScheduleBase::__construct in Commerce Recurring Framework 8

Constructs a new BillingScheduleBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides PluginBase::__construct

File

src/Plugin/Commerce/BillingSchedule/BillingScheduleBase.php, line 33

Class

BillingScheduleBase
Provides the base class for billing schedules.

Namespace

Drupal\commerce_recurring\Plugin\Commerce\BillingSchedule

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  if (array_key_exists('_entity_id', $configuration)) {
    $this->entityId = $configuration['_entity_id'];
    unset($configuration['_entity_id']);
  }
  $this
    ->setConfiguration($configuration);
}