function UserDevelGenerate::validateDrushParams

Same name in other branches
  1. 8.x-1.x devel_generate/src/Plugin/DevelGenerate/UserDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\UserDevelGenerate::validateDrushParams()
  2. 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\DevelGenerate

Code

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'],
    ];
}