You are here

public function ServerTaskManagerInterface::delete in Search API 8

Removes pending server tasks from the list.

Parameters

\Drupal\search_api\ServerInterface|null $server: (optional) A server for which the tasks should be deleted. Set to NULL to delete tasks from all servers.

\Drupal\search_api\IndexInterface|string|null $index: (optional) An index (or its ID) for which the tasks should be deleted. Set to NULL to delete tasks for all indexes.

string[]|null $types: (optional) The types of tasks that should be deleted, or NULL to delete tasks regardless of type.

1 method overrides ServerTaskManagerInterface::delete()
ServerTaskManager::delete in src/Task/ServerTaskManager.php
Removes pending server tasks from the list.

File

src/Task/ServerTaskManagerInterface.php, line 60

Class

ServerTaskManagerInterface
Defines the interface for the server task manager.

Namespace

Drupal\search_api\Task

Code

public function delete(ServerInterface $server = NULL, $index = NULL, array $types = NULL);