You are here

function _search_api_drush_command_helper in Search API 8

Returns an instance of the command helper.

Return value

\Drupal\search_api\Utility\CommandHelper An instance of the command helper class.

15 calls to _search_api_drush_command_helper()
drush_search_api_clear in ./search_api.drush.inc
Clears a search index.
drush_search_api_disable in ./search_api.drush.inc
Disables one or more search indexes.
drush_search_api_disable_all in ./search_api.drush.inc
Disables all search indexes.
drush_search_api_enable in ./search_api.drush.inc
Enables one or more search indexes.
drush_search_api_enable_all in ./search_api.drush.inc
Enables all search indexes.

... See full list

File

./search_api.drush.inc, line 445
Drush commands for Search API.

Code

function _search_api_drush_command_helper() {
  $command_helper = new CommandHelper(\Drupal::entityTypeManager(), \Drupal::moduleHandler(), \Drupal::service('event_dispatcher'), 'dt');
  $command_helper
    ->setLogger(\Drupal::logger('search_api'));
  return $command_helper;
}