You are here

function business_rules_drush_init in Business Rules 2.x

Same name and namespace in other branches
  1. 8 business_rules.drush.inc \business_rules_drush_init()

Implements hook_drush_init().

File

./business_rules.drush.inc, line 14
Business Rules module integration with Drush 8 and earlier.

Code

function business_rules_drush_init() {
  if (\Drupal::hasService('event_dispatcher')) {
    \Drupal::service('event_dispatcher')
      ->dispatch(BusinessRulesDrushEvent::DRUSHINIT, new Event());
  }
}