function QueueDatabaseFactory::get

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Queue/QueueDatabaseFactory.php \Drupal\Core\Queue\QueueDatabaseFactory::get()
  2. 10 core/lib/Drupal/Core/Queue/QueueDatabaseFactory.php \Drupal\Core\Queue\QueueDatabaseFactory::get()
  3. 11.x 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 38

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.