connection = $connection; } /** * Constructs a new queue object for a given name. * * @param string $name * The name of the collection holding key and value pairs. * * @return \Drupal\Core\Queue\DatabaseQueue * A key/value store implementation for the given $collection. */ public function get($name) { return new DatabaseQueue($name, $this->connection); } }