You are here

public function EntityShareCronPending::__construct in Entity Share Cron 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/QueueWorker/EntityShareCronPending.php \Drupal\entity_share_cron\Plugin\QueueWorker\EntityShareCronPending::__construct()
  2. 3.0.x src/Plugin/QueueWorker/EntityShareCronPending.php \Drupal\entity_share_cron\Plugin\QueueWorker\EntityShareCronPending::__construct()

Constructor.

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\entity_share_cron\EntityShareCronService $service: Entity Share Cron service.

\Psr\Log\LoggerInterface $logger: Logger.

Overrides PluginBase::__construct

File

src/Plugin/QueueWorker/EntityShareCronPending.php, line 52

Class

EntityShareCronPending
Imports entities from Entity Share channels.

Namespace

Drupal\entity_share_cron\Plugin\QueueWorker

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityShareCronService $service, LoggerInterface $logger) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->service = $service;
  $this->logger = $logger;
}