addChild($this->translator->trans('Homepage'), [ 'route' => 'chill_main_homepage', ]) ->setExtras([ 'icons' => ['home'], 'order' => 0, ]); if ($this->parameterBag->get('chill_main.access_global_history')) { $menu->addChild($this->translator->trans('Global timeline'), [ 'route' => 'chill_center_timeline', ]) ->setExtras( [ 'order' => 10, ] ); } if ($this->authorizationChecker->isGranted(ChillExportVoter::EXPORT)) { $menu->addChild($this->translator->trans('Export Menu'), [ 'route' => 'chill_main_export_index', ]) ->setExtras([ 'icons' => ['upload'], 'order' => 20, ]); } } public static function getMenuIds(): array { return ['section']; } }