You are here

public function WebformScheduledTask::setNextTaskRunDate in Webform Scheduled Tasks 8.2

Set the date and time the next task is scheduled to be run.

NOTE: setting this value will take effect immediately and does not require an entity save.

Parameters

int $timestamp: The timestamp for when the task will next be attempted to run.

Return value

$this

Overrides WebformScheduledTaskInterface::setNextTaskRunDate

1 call to WebformScheduledTask::setNextTaskRunDate()
WebformScheduledTask::incrementTaskRunDateByInterval in src/Entity/WebformScheduledTask.php
Increment the next task run date by the current time + the run interval.

File

src/Entity/WebformScheduledTask.php, line 210

Class

WebformScheduledTask
Defines the webform schedule entity type.

Namespace

Drupal\webform_scheduled_tasks\Entity

Code

public function setNextTaskRunDate($timestamp) {
  $this
    ->getScheduleState()
    ->setNextScheduledTime($this, $timestamp);
  return $this;
}