public function Task::getIndexId in Search API 8
Retrieves the ID of the search index associated with this task, if any.
Return value
string|null The search index ID, or NULL if there is none.
Overrides TaskInterface::getIndexId
1 call to Task::getIndexId()
- Task::getIndex in src/
Entity/ Task.php - Retrieves the search index associated with this task, if any.
File
- src/
Entity/ Task.php, line 115
Class
- Task
- Defines the Search API task entity class.
Namespace
Drupal\search_api\EntityCode
public function getIndexId() {
$field = $this
->get('index_id')[0];
return $field ? $field->value : NULL;
}