You are here

protected function JobCreatorTrait::scheduleJobs in Apigee Edge 8

Schedules multiple jobs for execution.

Parameters

\Drupal\apigee_edge\Job\Job[] $jobs: The array of the jobs should be scheduled.

File

src/Job/JobCreatorTrait.php, line 55

Class

JobCreatorTrait
A trait for all jobs that create other jobs.

Namespace

Drupal\apigee_edge\Job

Code

protected function scheduleJobs(array $jobs) {
  $executor = $this
    ->getExecutor();
  foreach ($jobs as $job) {
    $executor
      ->save($job);
  }
}