You are here

business_rules.drush.inc in Business Rules 8

Same filename and directory in other branches
  1. 2.x 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().