function DevelGenerateCommands::menus
Same name in other branches
- 5.x devel_generate/src/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Commands\DevelGenerateCommands::menus()
- 5.x devel_generate/src/Drush/Commands/DevelGenerateCommands.php \Drupal\devel_generate\Drush\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\CommandsCode
public function menus($number_menus = 2, $number_links = 50, $max_depth = 3, $max_width = 8, array $options = [
'kill' => FALSE,
]) {
$this->generate();
}