You are here

public function UniqueQueueDatabaseFactory::get in Queue Unique 8.2

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.

Overrides QueueDatabaseFactory::get

File

src/UniqueQueueDatabaseFactory.php, line 15

Class

UniqueQueueDatabaseFactory
Factory class for generating unique database queues.

Namespace

Drupal\queue_unique

Code

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