public function onLeftMenuRender(\Club\MenuBundle\Event\FilterMenuEvent $event) { if ($this->security_context->isGranted('ROLE_MATCH_ADMIN')) { $menu = array('header' => $this->translator->trans('Match'), 'items' => array(array('name' => $this->translator->trans('Ranking'), 'route' => $this->router->generate('club_ranking_adminranking_index')), array('name' => $this->translator->trans('Rule'), 'route' => $this->router->generate('club_ranking_adminrule_index')))); $event->appendItem($menu); } }
public function onLeftMenuRender(\Club\MenuBundle\Event\FilterMenuEvent $event) { if ($this->security_context->isGranted('ROLE_TEAM_ADMIN')) { $menu = array('header' => $this->translator->trans('Administration'), 'items' => array(array('name' => $this->translator->trans('Checkin'), 'route' => $this->router->generate('club_checkin_admincheckin_index')))); $event->appendItem($menu); } }
public function onTopRightMenuRender(\Club\MenuBundle\Event\FilterMenuEvent $event) { $menu = array('name' => $this->translator->trans('Feedback'), 'route' => $this->router->generate('club_feedback_feedback_index')); $event->appendItem($menu); }