Add QueueFactoryInterface
1 unresolved thread
1 unresolved thread
Closes #3416826
Merge request reports
Activity
4 5 /** 6 * An interface defining queue factory classes. 7 */ 8 interface QueueFactoryInterface { 9 10 /** 11 * Constructs a new queue object for a given name. 12 * 13 * @param string $name 14 * The name of the queue. 15 * 16 * @return \Drupal\Core\Queue\QueueInterface 17 * The queue object. 18 */ 19 public function get($name); Unfortunately we can't add a return type here because that would mean adding it to QueueDatabaseFactory as well, and then contrib extends that: https://git.drupalcode.org/project/queue_unique/-/blob/8.x-2.x/src/UniqueQueueDatabaseFactory.php?ref_type=heads#L15
Please register or sign in to reply