public function WebformScheduledTask::incrementTaskRunDateByInterval in Webform Scheduled Tasks 8.2
Increment the next task run date by the current time + the run interval.
Overrides WebformScheduledTaskInterface::incrementTaskRunDateByInterval
1 call to WebformScheduledTask::incrementTaskRunDateByInterval()
- WebformScheduledTask::getNextTaskRunDate in src/
Entity/ WebformScheduledTask.php - Get the next run date for the task.
File
- src/
Entity/ WebformScheduledTask.php, line 231
Class
- WebformScheduledTask
- Defines the webform schedule entity type.
Namespace
Drupal\webform_scheduled_tasks\EntityCode
public function incrementTaskRunDateByInterval() {
$this
->setNextTaskRunDate($this
->getTime()
->getRequestTime() + $this
->getRunIntervalMultiplier() * $this
->getRunIntervalAmount());
}