function ExampleDevelGenerate::validateDrushParams
Same name in other branches
- 4.x devel_generate/tests/modules/devel_generate_example/src/Plugin/DevelGenerate/ExampleDevelGenerate.php \Drupal\devel_generate_example\Plugin\DevelGenerate\ExampleDevelGenerate::validateDrushParams()
- 5.x devel_generate/tests/modules/devel_generate_example/src/Plugin/DevelGenerate/ExampleDevelGenerate.php \Drupal\devel_generate_example\Plugin\DevelGenerate\ExampleDevelGenerate::validateDrushParams()
Overrides DevelGenerateBaseInterface::validateDrushParams
File
-
devel_generate/
tests/ modules/ devel_generate_example/ src/ Plugin/ DevelGenerate/ ExampleDevelGenerate.php, line 80
Class
- ExampleDevelGenerate
- Provides a ExampleDevelGenerate plugin.
Namespace
Drupal\devel_generate_example\Plugin\DevelGenerateCode
public function validateDrushParams($args) {
$values = array(
'num' => array_shift($args),
'kill' => drush_get_option('kill'),
);
return $values;
}