function drush_search_api_server_list in Search API 8
Same name and namespace in other branches
- 7 search_api.drush.inc \drush_search_api_server_list()
Lists all available search servers.
File
- ./
search_api.drush.inc, line 355 - Drush commands for Search API.
Code
function drush_search_api_server_list() {
$command_helper = _search_api_drush_command_helper();
$rows[] = [
dt('ID'),
dt('Name'),
dt('Status'),
];
try {
$rows += $command_helper
->serverListCommand();
} catch (ConsoleException $exception) {
drush_print($exception
->getMessage());
}
drush_print_table($rows);
}