public function SearchApiCommands::disable in Search API 8
Disables one or more enabled search indexes.
@command search-api:disable
@usage drush search-api:disable node_index Disable the search index with the ID node_index. @usage drush sapi-dis node_index Alias to disable the search index with the ID node_index.
@aliases sapi-dis,search-api-disable
Parameters
string $indexId: A search index ID.
Throws
\Exception If no indexes are defined or no index has been passed.
File
- src/
Commands/ SearchApiCommands.php, line 148
Class
- SearchApiCommands
- Defines Drush commands for the Search API.
Namespace
Drupal\search_api\CommandsCode
public function disable($indexId) {
$this->commandHelper
->disableIndexCommand([
$indexId,
]);
}