Commit b0c84a20 authored by Nicolas Widart's avatar Nicolas Widart

Use the first module name for the group title as default

parent 416bbf64
...@@ -228,9 +228,11 @@ class EntityGenerator extends Generator ...@@ -228,9 +228,11 @@ class EntityGenerator extends Generator
private function generateSidebarExtender($entities) private function generateSidebarExtender($entities)
{ {
if (count($entities) > 0) { if (count($entities) > 0) {
$firstModuleName = $entities[0];
return $this->writeFile( return $this->writeFile(
$this->getModulesPath('Sidebar/SidebarExtender'), $this->getModulesPath('Sidebar/SidebarExtender'),
$this->getContentForStub('sidebar-extender.stub', 'abc') $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