コード例 #1
0
 /**
  * @param ConfigureMenuEvent $event
  */
 public function configureMenu(ConfigureMenuEvent $event)
 {
     $menu = $event->getMenu();
     if (!($seo = $menu->getChild('SEO'))) {
         return;
     }
     $seo->addChild('Настройки robots', ['route' => 'vesax.seo.admin.robots.edit']);
 }
コード例 #2
0
 public function addMenuItems(ConfigureMenuEvent $event)
 {
     $menu = $event->getMenu();
     $child = $menu->addChild('reports', array('route' => 'app_reports_index', 'labelAttributes' => array('icon' => 'fa fa-bar-chart')));
     $child->setLabel('Daily and monthly reports');
 }
コード例 #3
0
 /**
  * @param ConfigureMenuEvent $event
  */
 public function addMenuItems(ConfigureMenuEvent $event)
 {
     $menu = $event->getMenu();
     $menu->addChild($this->translator->trans(' fm_yaml_menu'))->setExtra('icon', "<i class=\"fa fa-lg fa-fw fa fa-cogs\"></i>")->addChild($this->translator->trans(' fm_yaml_menu'), array('route' => 'yaml_menu_admin_list'));
 }
コード例 #4
0
 public function addMenuItems(ConfigureMenuEvent $event)
 {
     $menu = $event->getMenu();
     $child = $menu->addChild('reports', array('route' => 'parser', 'labelAttributes' => array('icon' => 'fa fa-bar-chart')));
     $child->setLabel('Tests parsers');
 }