public function TaskInterface::getIndex in Search API 8
Retrieves the search index associated with this task, if any.
Return value
\Drupal\search_api\IndexInterface|null The search index, or NULL if there is none.
Throws
\Drupal\search_api\SearchApiException Thrown if an index was set, but it could not be loaded.
1 method overrides TaskInterface::getIndex()
- Task::getIndex in src/
Entity/ Task.php - Retrieves the search index associated with this task, if any.
File
- src/
Task/ TaskInterface.php, line 57
Class
- TaskInterface
- Defines an interface for a Search API task.
Namespace
Drupal\search_api\TaskCode
public function getIndex();