public function SearchApiCommands::enableAll in Search API 8
Enables all disabled search indexes.
@command search-api:enable-all
@usage drush search-api:enable-all Enable all disabled indexes. @usage drush sapi-ena Alias to enable all disabled indexes.
@aliases sapi-ena,search-api-enable-all
Throws
\Drupal\search_api\ConsoleException Thrown if no indexes could be loaded.
File
- src/
Commands/ SearchApiCommands.php, line 126
Class
- SearchApiCommands
- Defines Drush commands for the Search API.
Namespace
Drupal\search_api\CommandsCode
public function enableAll() {
$this->commandHelper
->enableIndexCommand();
}