You are here

public function QueueDatabaseFactory::get in Zircon Profile 8

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

Constructs a new queue object for a given name.

Parameters

string $name: The name of the collection holding key and value pairs.

Return value

\Drupal\Core\Queue\DatabaseQueue A key/value store implementation for the given $collection.

File

core/lib/Drupal/Core/Queue/QueueDatabaseFactory.php, line 43
Contains \Drupal\Core\Queue\QueueDatabaseFactory.

Class

QueueDatabaseFactory
Defines the key/value store factory for the database backend.

Namespace

Drupal\Core\Queue

Code

public function get($name) {
  return new DatabaseQueue($name, $this->connection);
}