public function SearchApiCommands::disableAll in Search API 8
Disables all enabled search indexes.
@command search-api:disable-all
@usage drush search-api:disable-all Disable all enabled indexes. @usage drush sapi-disa Alias to disable all enabled indexes.
@aliases sapi-disa,search-api-disable-all
Throws
\Drupal\search_api\ConsoleException Thrown if no indexes could be loaded.
File
- src/
Commands/ SearchApiCommands.php, line 167
Class
- SearchApiCommands
- Defines Drush commands for the Search API.
Namespace
Drupal\search_api\CommandsCode
public function disableAll() {
$this->commandHelper
->disableIndexCommand();
}