interface TaskRunnerInterface in Webform Scheduled Tasks 8.2
An interface for the task runner.
Hierarchy
- interface \Drupal\webform_scheduled_tasks\TaskRunnerInterface
Expanded class hierarchy of TaskRunnerInterface
All classes that implement TaskRunnerInterface
File
- src/
TaskRunnerInterface.php, line 8
Namespace
Drupal\webform_scheduled_tasksView source
interface TaskRunnerInterface {
/**
* Execute all pending tasks.
*
* @param \Drupal\webform_scheduled_tasks\Entity\WebformScheduledTaskInterface[] $tasks
* A list of tasks to execute, regardless of their eligibility.
*/
public function executeTasks(array $tasks);
/**
* Get a list of pending tasks ready to be executed based on the schedule.
*
* @return \Drupal\webform_scheduled_tasks\Entity\WebformScheduledTaskInterface[]
* A list of tasks ready to execute based on the schedule.
*/
public function getPendingTasks();
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TaskRunnerInterface:: |
public | function | Execute all pending tasks. | 1 |
TaskRunnerInterface:: |
public | function | Get a list of pending tasks ready to be executed based on the schedule. | 1 |