You are here

public function TaskInterface::getServer in Search API 8

Retrieves the search server associated with this task, if any.

Return value

\Drupal\search_api\ServerInterface|null The search server, or NULL if there is none.

Throws

\Drupal\search_api\SearchApiException Thrown if a server was set, but it could not be loaded.

1 method overrides TaskInterface::getServer()
Task::getServer in src/Entity/Task.php
Retrieves the search server associated with this task, if any.

File

src/Task/TaskInterface.php, line 38

Class

TaskInterface
Defines an interface for a Search API task.

Namespace

Drupal\search_api\Task

Code

public function getServer();