You are here

public function EntitySubqueuePreSave::__construct in Acquia Content Hub 8.2

EntitySubqueuePreSave constructor.

Parameters

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

File

modules/acquia_contenthub_subscriber/src/EventSubscriber/PreEntitySave/EntitySubqueuePreSave.php, line 44

Class

EntitySubqueuePreSave
Handles entity subqueue import failure.

Namespace

Drupal\acquia_contenthub_subscriber\EventSubscriber\PreEntitySave

Code

public function __construct(Connection $database) {

  // Using \Drupal::entityTypeManager() do to caching of the instance in
  // some services. Looks like a core bug.
  $this->entityTypeManager = \Drupal::entityTypeManager();
  $this->database = $database;
}