Esempio n. 1
0
 public function addPositions(Event $event)
 {
     $menu = $event->getMenu()->addChild($this->translator->trans("Media Library"), ['route' => 'HexMediaContentMedia', 'id' => 'HexMediaContentMedia'])->setAttribute('icon', 'fa fa-picture-o');
     $menu = $event->getMenu()->addChild($this->translator->trans("Pages"), ['route' => 'HexMediaContentPage', 'id' => "HexMediaContentPage"])->setAttribute('icon', 'fa fa-sitemap');
     return $event->getMenu();
 }
Esempio n. 2
0
 public function addPositions(MenuEvent $event)
 {
     return $event->getMenu()->addChild($this->translator->trans("Users"), array('route' => 'HexMediaUser', 'id' => 'HexMediaUser'))->setAttribute('icon', 'fa fa-users');
 }