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::GENERATE_SAVED_EXPORT)) { $menu->addChild($this->translator->trans('Export Menu'), [ 'route' => 'chill_main_export_saved_list_my', ]) ->setExtras([ 'icons' => ['upload'], 'order' => 20, ]); } $menu->addChild($this->translator->trans('news.menu'), [ 'route' => 'chill_main_news_items_history', ]) ->setExtras([ 'icons' => ['newspaper-o'], 'order' => 5, ]); } public static function getMenuIds(): array { return ['section']; } }