public function MemoryLimitDatabaseQueueFactory::get in Acquia Content Hub 8
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/
Queue/ MemoryLimitDatabaseQueueFactory.php, line 15
Class
- MemoryLimitDatabaseQueueFactory
- A factory for a database queue that checks memory limitations.
Namespace
Drupal\acquia_contenthub\QueueCode
public function get($name) {
return new MemoryLimitDatabaseQueue($name, $this->connection);
}