You are here

public function JobSchedule::setCrontab in Job Scheduler 8.3

Sets the job crontab.

Parameters

string $crontab: The job crontab.

Return value

JobSchedule The job schedule entity.

File

src/Entity/JobSchedule.php, line 133

Class

JobSchedule
Defines the job schedule entity.

Namespace

Drupal\job_scheduler\Entity

Code

public function setCrontab($crontab) {
  $this
    ->set('crontab', $crontab);
  return $this;
}