You are here

public function OrphanPurger::__construct in Entity Reference Revisions 8

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

\Drupal\entity_reference_revisions\EntityReferenceRevisionsOrphanPurger $purger: The purger service.

\Drupal\Core\Database\Connection $database: The database service.

Overrides PluginBase::__construct

File

src/Plugin/QueueWorker/OrphanPurger.php, line 60

Class

OrphanPurger
Removes composite revisions that are no longer used.

Namespace

Drupal\entity_reference_revisions\Plugin\QueueWorker

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, EntityReferenceRevisionsOrphanPurger $purger, Connection $database) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->entityTypeManager = $entity_type_manager;
  $this->purger = $purger;
  $this->database = $database;
}