You are here

public function FeedQueueWorkerBase::__construct in Feeds 8.3

Constructs a FeedQueueWorkerBase object.

Parameters

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

string $plugin_id: The plugin_id for the plugin instance.

array $plugin_definition: The plugin implementation definition.

\Drupal\Core\Queue\QueueFactory $queue_factory: The queue factory.

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

\Drupal\Core\Session\AccountSwitcherInterface $account_switcher: The account switcher.

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

Overrides PluginBase::__construct

File

src/Plugin/QueueWorker/FeedQueueWorkerBase.php, line 63

Class

FeedQueueWorkerBase
Base class for Feed queue workers.

Namespace

Drupal\feeds\Plugin\QueueWorker

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, QueueFactory $queue_factory, EventDispatcherInterface $event_dispatcher, AccountSwitcherInterface $account_switcher, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->queueFactory = $queue_factory;
  $this
    ->setEventDispatcher($event_dispatcher);
  $this->accountSwitcher = $account_switcher;
  $this->entityTypeManager = $entity_type_manager;
}