class RealisticDummyContentDrushCommands in Realistic Dummy Content 3.x
Drush commands for Realistic Dummy Content and Drush 9+.
Hierarchy
- class \Drupal\realistic_dummy_content_api\DrushCommands\RealisticDummyContentDrushCommands extends \Drush\Commands\DrushCommands
Expanded class hierarchy of RealisticDummyContentDrushCommands
1 string reference to 'RealisticDummyContentDrushCommands'
1 service uses RealisticDummyContentDrushCommands
File
- api/
src/ DrushCommands/ RealisticDummyContentDrushCommands.php, line 11
Namespace
Drupal\realistic_dummy_content_api\DrushCommandsView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RealisticDummyContentDrushCommands:: |
public | function | Generates realistic dummy content. |