You are here

public function QueueDatabaseFactory::get in Drupal 9

Same name and namespace in other branches
  1. 8 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);
}