You are here

public function LicenseExpireNotify::__construct in Commerce License 8.2

Creates a CommerceLicenseExpireNotify instance.

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.

\Drupal\Core\Render\RendererInterface $renderer: The Renderer service.

\Drupal\Core\Mail\MailManagerInterface $plugin_manager_mail: The Mail Manager service.

Overrides PluginBase::__construct

File

src/Plugin/AdvancedQueue/JobType/LicenseExpireNotify.php, line 62

Class

LicenseExpireNotify
Provides the job type to send an email notification of license expiry.

Namespace

Drupal\commerce_license\Plugin\AdvancedQueue\JobType

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, MailManagerInterface $plugin_manager_mail) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->renderer = $renderer;
  $this->pluginManagerMail = $plugin_manager_mail;
}