function DevelGenerateCommands::menus

Same name in other branches
  1. 4.x devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::menus()
  2. 5.x devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::menus()
  3. 5.x devel_generate/src/Drush/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Drush\Commands\DevelGenerateCommands::menus()

Create menus.

@command devel-generate-menus @pluginId menu

@option kill Delete all content before generating new content. @aliases genm @validate-module-enabled menu_link_content

Parameters

$number_menus Number of menus to generate.:

$number_links Number of links to generate.:

$max_depth Max link depth.:

$max_width Max width of first level of links.:

File

devel_generate/src/Commands/DevelGenerateCommands.php, line 146

Class

DevelGenerateCommands
For commands that are parts of modules, Drush expects to find commandfiles in __MODULE__/src/Commands, and the namespace is Drupal/__MODULE__/Commands.

Namespace

Drupal\devel_generate\Commands

Code

public function menus($number_menus = 2, $number_links = 50, $max_depth = 3, $max_width = 8, $options = [
    'kill' => FALSE,
]) {
    $this->generate();
}