You are here

public function Job::setPayload in Advanced Queue 8

Sets the job payload.

Parameters

array $payload: The job payload.

Return value

$this

File

src/Job.php, line 246

Class

Job
Represents a job.

Namespace

Drupal\advancedqueue

Code

public function setPayload(array $payload) {
  $this->payload = $payload;
  return $this;
}