/** * @DI\Observe("claroline_group_additional_action") * * @param \Claroline\CoreBundle\Menu\GroupAdditionalActionEvent $event */ public function onGroupActionMenuRender(GroupAdditionalActionEvent $event) { $group = $event->getGroup(); $url = $this->router->generate('claro_cursus_group_sessions_management', ['group' => $group->getId()]); $menu = $event->getMenu(); $menu->addChild($this->translator->trans('user_sessions_management', [], 'cursus'), ['uri' => $url])->setExtra('icon', 'fa fa-list-alt'); return $menu; }
/** * @DI\Observe("claroline_group_additional_action") * * @param \Claroline\CoreBundle\Menu\GroupAdditionalActionEvent $event */ public function onGroupActionMenuRender(GroupAdditionalActionEvent $event) { $group = $event->getGroup(); $url = $this->router->generate('claro_tag_group_tag_form', array('group' => $group->getId())); $menu = $event->getMenu(); $menu->addChild($this->translator->trans('tag_action', array(), 'tag'), array('uri' => $url))->setExtra('icon', 'fa fa-tags')->setExtra('display', 'modal_form'); return $menu; }