function drush_devel_generate in Devel 8
Same name and namespace in other branches
- 8.3 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 - Implementation of hook_drush_command().
File
- devel_generate/
drush/ devel_generate.drush8.inc, line 186 - 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);
}