public function QueueDatabaseFactory::get in Drupal 8
Same name and namespace in other branches
- 9 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\QueueCode
public function get($name) {
return new DatabaseQueue($name, $this->connection);
}