business_rules.drush.inc in Business Rules 2.x
Same filename and directory in other branches
Business Rules module integration with Drush 8 and earlier.
File
business_rules.drush.incView 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
Name | Description |
---|---|
business_rules_drush_init | Implements hook_drush_init(). |