function UserDevelGenerate::validateDrushParams
Same name in other branches
- 5.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 195
Class
- UserDevelGenerate
- Provides a UserDevelGenerate plugin.
Namespace
Drupal\devel_generate\Plugin\DevelGenerateCode
public function validateDrushParams(array $args, array $options = []) {
$values = [
'num' => array_shift($args),
'time_range' => 0,
'roles' => StringUtils::csvToArray($options['roles']),
'kill' => $options['kill'],
'pass' => $options['pass'],
];
return $values;
}