You are here

public function TaskManagerInterface::loadTasks in Search API 8

Load all tasks matching the given conditions.

Parameters

array $conditions: (optional) An array of conditions to be matched for the tasks, with property names mapped to the value (or values, for multiple possibilities) that the property should have.

Return value

\Drupal\search_api\Task\TaskInterface[] The loaded tasks, keyed by task ID.

1 method overrides TaskManagerInterface::loadTasks()
TaskManager::loadTasks in src/Task/TaskManager.php
Load all tasks matching the given conditions.

File

src/Task/TaskManagerInterface.php, line 57

Class

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

Namespace

Drupal\search_api\Task

Code

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