You are here

realistic_dummy_content_api.drush.inc in Realistic Dummy Content 8

Drush integration for the realistic_dummy_content_api module.

File

api/realistic_dummy_content_api.drush.inc
View source
<?php

/**
 * @file
 * Drush integration for the realistic_dummy_content_api module.
 */

/**
 * Implements hook_drush_command().
 */
function realistic_dummy_content_api_drush_command() {
  $items['generate-realistic'] = array(
    'description' => dt('Generates realistic dummy content by looking in each active module for a file called realistic_dummy_content/recipe/module_name.recipe.inc, which should contain a subclass of RealisticDummyContentRecipe called module_name_realistic_dummy_content_recipe with a run() method.'),
    'aliases' => array(
      'grc',
    ),
  );
  return $items;
}

/**
 * Callback: Generates realistic content
 */
function drush_realistic_dummy_content_api_generate_realistic() {
  realistic_dummy_content_api_apply_recipe(new \Drupal\realistic_dummy_content_api\loggers\DrushLog());
}

Functions

Namesort descending Description
drush_realistic_dummy_content_api_generate_realistic Callback: Generates realistic content
realistic_dummy_content_api_drush_command Implements hook_drush_command().