Skip to content
Snippets Groups Projects
Commit 3491d7c7 authored by Moshe Weitzman's avatar Moshe Weitzman
Browse files

Lower chars only for menu name in generate. Fixes #379

parent 2a5ad43c
No related branches found
No related tags found
No related merge requests found
...@@ -318,7 +318,7 @@ class MenuDevelGenerate extends DevelGenerateBase implements ContainerFactoryPlu ...@@ -318,7 +318,7 @@ class MenuDevelGenerate extends DevelGenerateBase implements ContainerFactoryPlu
// machine-name length is 32, so allowing for prefix 'devel-' we can have // machine-name length is 32, so allowing for prefix 'devel-' we can have
// up to 26 here. For safety avoid accidentally reusing the same id. // up to 26 here. For safety avoid accidentally reusing the same id.
do { do {
$id = 'devel-' . $this->getRandom()->name(mt_rand(2, 26)); $id = 'devel-' . $this->getRandom()->word(mt_rand(2, 26));
} while (array_key_exists($id, $menus)); } while (array_key_exists($id, $menus));
$menu = $this->menuStorage->create([ $menu = $this->menuStorage->create([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment