You are here

function _varbase_update_helper_drush_command_helper in Varbase Core 8.6

Same name and namespace in other branches
  1. 8.8 modules/varbase_update_helper/varbase_update_helper.drush.inc \_varbase_update_helper_drush_command_helper()
  2. 8.7 modules/varbase_update_helper/varbase_update_helper.drush.inc \_varbase_update_helper_drush_command_helper()
  3. 9.0.x modules/varbase_update_helper/varbase_update_helper.drush.inc \_varbase_update_helper_drush_command_helper()

Returns an instance of the command helper.

Return value

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

1 call to _varbase_update_helper_drush_command_helper()
drush_varbase_update_helper_varbase_apply_update in modules/varbase_update_helper/varbase_update_helper.drush.inc
Drush command logic.

File

modules/varbase_update_helper/varbase_update_helper.drush.inc, line 50
Contains drush command for Varbase update helpers.

Code

function _varbase_update_helper_drush_command_helper() {
  $command_helper = new CommandHelper();
  $command_helper
    ->setLogger(\Drupal::logger('varbase_update_helper'));
  return $command_helper;
}