function drush_search_api_status in Search API 8
Same name and namespace in other branches
- 7 search_api.drush.inc \drush_search_api_status()
Displays the status of one or all search indexes.
Parameters
string|null $index_id: (optional) The ID of the search index whose status should be displayed, or NULL to display the status of all search indexes.
File
- ./
search_api.drush.inc, line 281 - Drush commands for Search API.
Code
function drush_search_api_status($index_id = NULL) {
$command_helper = _search_api_drush_command_helper();
$rows[] = [
dt('ID'),
dt('Name'),
dt('% Complete'),
dt('Indexed'),
dt('Total'),
];
$rows += $command_helper
->indexStatusCommand([
$index_id,
]);
drush_print_table($rows);
}