You are here

business_rules.drush.inc in Business Rules 2.x

Same filename and directory in other branches
  1. 8 business_rules.drush.inc

Business Rules module integration with Drush 8 and earlier.

File

business_rules.drush.inc
View source
<?php

/**
 * @file
 * Business Rules module integration with Drush 8 and earlier.
 */
use Drupal\business_rules\Events\BusinessRulesDrushEvent;
use Symfony\Component\EventDispatcher\Event;

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

Functions

Namesort descending Description
business_rules_drush_init Implements hook_drush_init().