public function DevelGenerateCommands::menus in Devel 8.2
Same name and namespace in other branches
- 8.3 devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::menus()
- 8 devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::menus()
- 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 any menus and menu links previously created by devel_generate before generating new ones. @aliases genm, devel-generate-menus @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\CommandsCode
public function menus($number_menus = 2, $number_links = 50, $max_depth = 3, $max_width = 8, $options = [
'kill' => FALSE,
]) {
$this
->generate();
}