<?php
namespace App\Application\Internit\SettingBundle\EventListener;
use Sonata\AdminBundle\Event\ConfigureMenuEvent;
class MenuBuilderListener
{
public function addMenuItems(ConfigureMenuEvent $event)
{
$menu = $event->getMenu();
$child = $menu->addChild('Setting', [
'label' => 'Configurações',
'route' => 'show-setting',
])->setExtras([
'icon' => '<i class="fa fa-cog fa-fw"></i>',
]);
//Criar submenu
//$child->addChild('SubMenu', ['route' => 'show-setting']);
}
}