You are here

public function WebformScheduledTask::getRunIntervalMultiplier in Webform Scheduled Tasks 8.2

Get a multiplier for the run interval.

This is set in instances where admins configure a multiple of a number of seconds to run the task. For example, if they configured to run every 6 days, the multiple would 6 x seconds in 1 day.

Return value

int The multiplier for the run interval.

Overrides WebformScheduledTaskInterface::getRunIntervalMultiplier

2 calls to WebformScheduledTask::getRunIntervalMultiplier()
WebformScheduledTask::getNextTaskRunDate in src/Entity/WebformScheduledTask.php
Get the next run date for the task.
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 187

Class

WebformScheduledTask
Defines the webform schedule entity type.

Namespace

Drupal\webform_scheduled_tasks\Entity

Code

public function getRunIntervalMultiplier() {
  return isset($this->interval['multiplier']) ? $this->interval['multiplier'] : NULL;
}