Commit a75b22bb authored by Nicolas Widart's avatar Nicolas Widart

Use the first module name as the group name as default

parent 681f5773
...@@ -228,11 +228,11 @@ class EntityGenerator extends Generator ...@@ -228,11 +228,11 @@ class EntityGenerator extends Generator
private function generateSidebarExtender($entities) private function generateSidebarExtender($entities)
{ {
if (count($entities) > 0) { if (count($entities) > 0) {
$firstName = $entities[0]; $firstModuleName = $entities[0];
return $this->writeFile( return $this->writeFile(
$this->getModulesPath('Sidebar/SidebarExtender'), $this->getModulesPath('Sidebar/SidebarExtender'),
$this->getContentForStub('sidebar-extender.stub', $firstName) $this->getContentForStub('sidebar-extender.stub', $firstModuleName)
); );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment