You are here

public function RecurringPeriodBase::__construct in Recurring Time Period 8

Constructs a new plugin instance.

Parameters

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

string $plugin_id: The pluginId for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\interval\IntervalPluginManagerInterface $plugin_manager_interval_intervals: The Interval Plugin Manager service.

Overrides PluginBase::__construct

File

src/Plugin/RecurringPeriod/RecurringPeriodBase.php, line 40

Class

RecurringPeriodBase
Base class for recurring period plugins.

Namespace

Drupal\recurring_period\Plugin\RecurringPeriod

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, IntervalPluginManagerInterface $plugin_manager_interval_intervals) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this
    ->setConfiguration($configuration);
  $this->pluginManagerIntervals = $plugin_manager_interval_intervals;
}