function drush_devel_generate in Devel 8.3
Same name and namespace in other branches
- 8 devel_generate/drush/devel_generate.drush8.inc \drush_devel_generate()
- 8.2 devel_generate/drush/devel_generate.drush8.inc \drush_devel_generate()
Command callback. Generate a number of elements.
1 string reference to 'drush_devel_generate'
- devel_generate_drush_command in devel_generate/
drush/ devel_generate.drush8.inc - Implements hook_drush_command().
File
- devel_generate/
drush/ devel_generate.drush8.inc, line 216 - Integration with Drush8. Drush9 commands are in src/Commands.
Code
function drush_devel_generate() {
$params = func_get_args();
$plugin_id = array_shift($params);
$instance_and_values = drupal_static('drush_devel_generate_generate_validate');
/* @var DevelGenerateBaseInterface $instance */
$instance = $instance_and_values[$plugin_id]['instance'];
$values = $instance_and_values[$plugin_id]['values'];
$instance
->generate($values);
}