You are here

public function TaskManagerInterface::deleteTasks in Search API 8

Deletes all tasks that fulfil a certain set of conditions.

Parameters

array $conditions: (optional) An array of conditions defining which tasks should be deleted. The structure is an associative array with property names mapped to the value (or values, for multiple possibilities) that the property should have. Leave empty to delete all pending tasks.

1 method overrides TaskManagerInterface::deleteTasks()
TaskManager::deleteTasks in src/Task/TaskManager.php
Deletes all tasks that fulfil a certain set of conditions.

File

src/Task/TaskManagerInterface.php, line 76

Class

TaskManagerInterface
Defines the interface of the Search API task manager service.

Namespace

Drupal\search_api\Task

Code

public function deleteTasks(array $conditions = []);