function drush_search_api_list in Search API 8
Same name and namespace in other branches
- 7 search_api.drush.inc \drush_search_api_list()
Prints a list of all search indexes.
File
- ./
search_api.drush.inc, line 196 - Drush commands for Search API.
Code
function drush_search_api_list() {
$command_helper = _search_api_drush_command_helper();
$rows[] = [
dt('ID'),
dt('Name'),
dt('Server'),
dt('Type'),
dt('Status'),
dt('Limit'),
];
$rows += $command_helper
->indexListCommand();
foreach ($rows as &$row) {
$row['types'] = is_array($row['types']) ? implode(', ', $row['types']) : $row['types'];
$row['typeNames'] = is_array($row['types']) ? implode(', ', $row['typeNames']) : $row['types'];
}
drush_print_table($rows);
}