You are here

public function DevelGenerateCommands::menus in Devel 8

Same name and namespace in other branches
  1. 8.3 devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::menus()
  2. 8.2 devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::menus()
  3. 4.x devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\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();
}