You are here

public function RecurringJobTypeBase::__construct in Commerce Recurring Framework 8

Constructs a new RecurringJobTypeBase 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.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\commerce_recurring\RecurringOrderManagerInterface $recurring_order_manager: The recurring order manager.

Overrides PluginBase::__construct

File

src/Plugin/AdvancedQueue/JobType/RecurringJobTypeBase.php, line 59

Class

RecurringJobTypeBase
Provides a base class for recurring job types.

Namespace

Drupal\commerce_recurring\Plugin\AdvancedQueue\JobType

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, EventDispatcherInterface $event_dispatcher, RecurringOrderManagerInterface $recurring_order_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->eventDispatcher = $event_dispatcher;
  $this->recurringOrderManager = $recurring_order_manager;
}