public function JobSchedule::setPeriod in Job Scheduler 8.3
Sets the job period.
Parameters
int $period: Time period after which job is to be executed.
Return value
JobSchedule The job schedule entity.
File
- src/
Entity/ JobSchedule.php, line 109  
Class
- JobSchedule
 - Defines the job schedule entity.
 
Namespace
Drupal\job_scheduler\EntityCode
public function setPeriod($period) {
  $this
    ->set('period', $period);
  return $this;
}