public function addDashboardMenuItem(MenuCollectionEvent $event): void
    {
        $menu = $event->getMenu();

        // Create overview menu item.
        $dashboard = $this->factory->createItem('menu_item.dashboard', [
            'route' => 'bkstg_admin_dashboard',
            'extras' => [
                'icon' => 'tachometer-alt',
                'translation_domain' => BkstgCoreBundle::TRANSLATION_DOMAIN,
            ],
        ]);
        $menu->addChild($dashboard);
    }
public function addDashboardMenuItem(MenuCollectionEvent $event): void
    {
        $menu = $event->getMenu();

        // Create overview menu item.
        $dashboard = $this->factory->createItem('menu_item.dashboard', [
            'route' => 'bkstg_admin_dashboard',
            'extras' => [
                'icon' => 'tachometer-alt',
                'translation_domain' => BkstgCoreBundle::TRANSLATION_DOMAIN,
            ],
        ]);
        $menu->addChild($dashboard);
    }
public function addDashboardMenuItem ( MenuCollectionEvent $ event ) : void { $ menu = $ event -> getMenu ( ) ; // Create overview menu item. $ dashboard = $ this -> factory -> createItem ( 'menu_item.dashboard' , [ 'route' => 'bkstg_admin_dashboard' , 'extras' => [ 'icon' => 'tachometer-alt' , 'translation_domain' => BkstgCoreBundle :: TRANSLATION_DOMAIN , ] , ] ) ; $ menu -> addChild ( $ dashboard ) ; }
Add the dashboard menu item.

@param MenuCollectionEvent $event The menu collection event.

@return void
Add the dashboard menu item .