You are here

function DatabaseQueue::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Queue/DatabaseQueue.php \Drupal\Core\Queue\DatabaseQueue::__construct()

Constructs a \Drupal\Core\Queue\DatabaseQueue object.

Parameters

string $name: The name of the queue.

\Drupal\Core\Database\Connection $connection: The Connection object containing the key-value tables.

File

core/lib/Drupal/Core/Queue/DatabaseQueue.php, line 44
Contains \Drupal\Core\Queue\DatabaseQueue.

Class

DatabaseQueue
Default queue implementation.

Namespace

Drupal\Core\Queue

Code

function __construct($name, Connection $connection) {
  $this->name = $name;
  $this->connection = $connection;
}