You are here

interface TaskRunnerInterface in Webform Scheduled Tasks 8.2

An interface for the task runner.

Hierarchy

Expanded class hierarchy of TaskRunnerInterface

All classes that implement TaskRunnerInterface

File

src/TaskRunnerInterface.php, line 8

Namespace

Drupal\webform_scheduled_tasks
View 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

Namesort descending Modifiers Type Description Overrides
TaskRunnerInterface::executeTasks public function Execute all pending tasks. 1
TaskRunnerInterface::getPendingTasks public function Get a list of pending tasks ready to be executed based on the schedule. 1