function DevelGenerateCommands::media

Same name in this branch
  1. 5.x devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::media()
Same name in other branches
  1. 4.x devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::media()

Create media items.

File

devel_generate/src/Drush/Commands/DevelGenerateCommands.php, line 222

Class

DevelGenerateCommands
Provide Drush commands for all the core Devel Generate plugins.

Namespace

Drupal\devel_generate\Drush\Commands

Code

public function media(int $num = 50, array $options = [
    'kill' => FALSE,
    'media-types' => self::REQ,
    'feedback' => 1000,
    'skip-fields' => self::REQ,
    'languages' => self::REQ,
    'base-fields' => self::REQ,
]) : void {
    $this->generate();
}