You are here

public function DevelGenerateCommands::menus in Devel 4.x

Same name and namespace in other branches
  1. 8.3 devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::menus()
  2. 8 devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::menus()
  3. 8.2 devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::menus()

Create menus.

@command devel-generate:menus @aliases genm, devel-generate-menus @pluginId menu @validate-module-enabled menu_link_content

@option kill Delete any menus and menu links previously created by devel_generate before generating new ones.

Parameters

int $number_menus: Number of menus to generate.

int $number_links: Number of links to generate.

int $max_depth: Max link depth.

int $max_width: Max width of first level of links.

array $options: Array of options as described below.

File

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

Class

DevelGenerateCommands
Provide Drush commands for all the Devel Generate processes.

Namespace

Drupal\devel_generate\Commands

Code

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