You are here

public function IsAlreadyEnqueued::__construct in Acquia Content Hub 8.2

IsAlreadyEnqueued constructor.

Parameters

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

\Drupal\acquia_contenthub_publisher\PublisherTracker $tracker: The publisher tracker.

File

modules/acquia_contenthub_publisher/src/EventSubscriber/EnqueueEligibility/IsAlreadyEnqueued.php, line 41

Class

IsAlreadyEnqueued
Any entity that is already in the export queue shouldn't be enqueued.

Namespace

Drupal\acquia_contenthub_publisher\EventSubscriber\EnqueueEligibility

Code

public function __construct(Connection $database, PublisherTracker $tracker) {
  $this->database = $database;
  $this->tracker = $tracker;
}