public function QueueInterface::enqueueJobs in Advanced Queue 8
Enqueues the given jobs.
Each job will be modified with the assigned queue ID, job ID, and relevant timestamps.
Parameters
\Drupal\advancedqueue\Job[] $jobs: The jobs.
int $delay: The time, in seconds, after which the jobs will become available to consumers. Defaults to 0, indicating no delay.
1 method overrides QueueInterface::enqueueJobs()
- Queue::enqueueJobs in src/
Entity/ Queue.php - Enqueues the given jobs.
File
- src/
Entity/ QueueInterface.php, line 50
Class
- QueueInterface
- Defines the interface for queues.
Namespace
Drupal\advancedqueue\EntityCode
public function enqueueJobs(array $jobs, $delay = 0);