You are here

public function TaskManagerInterface::getTasksCount in Search API 8

Retrieves the number of pending tasks for 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

int The number of pending tasks matching the conditions.

1 method overrides TaskManagerInterface::getTasksCount()
TaskManager::getTasksCount in src/Task/TaskManager.php
Retrieves the number of pending tasks for the given conditions.

File

src/Task/TaskManagerInterface.php, line 24

Class

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

Namespace

Drupal\search_api\Task

Code

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