DatabaseQueue::__construct

DatabaseQueue::__construct($name, Connection $connection)

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 45

Class

DatabaseQueue
Default queue implementation.

Namespace

Drupal\Core\Queue

Code

function __construct($name, Connection $connection) {
  $this->name = $name;
  $this->connection = $connection;
}
doc_Drupal
2016-10-29 08:59:51
Comments
Leave a Comment

Please login to continue.