function UserDevelGenerate::validateDrushParams
Same name in other branches
- 4.x devel_generate/src/Plugin/DevelGenerate/UserDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\UserDevelGenerate::validateDrushParams()
Overrides DevelGenerateBaseInterface::validateDrushParams
File
-
devel_generate/
src/ Plugin/ DevelGenerate/ UserDevelGenerate.php, line 177
Class
- UserDevelGenerate
- Provides a UserDevelGenerate plugin.
Namespace
Drupal\devel_generate\Plugin\DevelGenerateCode
public function validateDrushParams(array $args, array $options = []) : array {
return [
'num' => array_shift($args),
'time_range' => 0,
'roles' => self::csvToArray($options['roles']),
'kill' => $options['kill'],
'pass' => $options['pass'],
];
}