You are here

class RealisticDummyContentDrushCommands in Realistic Dummy Content 3.x

Drush commands for Realistic Dummy Content and Drush 9+.

Hierarchy

Expanded class hierarchy of RealisticDummyContentDrushCommands

1 string reference to 'RealisticDummyContentDrushCommands'
drush.services.yml in ./drush.services.yml
drush.services.yml
1 service uses RealisticDummyContentDrushCommands
realistic_dummy_content_api.drush_commands in ./drush.services.yml
\Drupal\realistic_dummy_content_api\DrushCommands\RealisticDummyContentDrushCommands

File

api/src/DrushCommands/RealisticDummyContentDrushCommands.php, line 11

Namespace

Drupal\realistic_dummy_content_api\DrushCommands
View source
class RealisticDummyContentDrushCommands extends DrushCommands {

  /**
   * Generates realistic dummy content.
   *
   * 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.
   *
   * @command realistic_dummy_content_api:generate-realistic
   * @aliases generate-realistic,grc
   * @usage realistic_dummy_content_api:generate-realistic
   *   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.
   */
  public function generateRealistic() {
    realistic_dummy_content_api_apply_recipe(new RealisticDummyContentDrushLog());
  }

}

Members