You are here

public function JobSchedule::setPeriodic in Job Scheduler 8.3

Sets the job periodic.

Parameters

bool $periodic: The job periodic.

Return value

JobSchedule The job schedule entity.

File

src/Entity/JobSchedule.php, line 182

Class

JobSchedule
Defines the job schedule entity.

Namespace

Drupal\job_scheduler\Entity

Code

public function setPeriodic($periodic) {
  $this
    ->set('periodic', (bool) $periodic);
  return $this;
}