You are here

public function Simple::__construct in Entityqueue 8

Constructs a Simple queue handler 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\EntityRepositoryInterface $entity_repository: The entity repository.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

Overrides EntityQueueHandlerBase::__construct

File

src/Plugin/EntityQueueHandler/Simple.php, line 56

Class

Simple
Defines an entity queue handler that manages a single subqueue.

Namespace

Drupal\entityqueue\Plugin\EntityQueueHandler

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityRepositoryInterface $entity_repository, ModuleHandlerInterface $module_handler) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityRepository = $entity_repository;
  $this->moduleHandler = $module_handler;
}