public function addOverviewItem(ProductionMenuCollectionEvent $event): void
    {
        $menu = $event->getMenu();
        $group = $event->getGroup();

        // Create overview menu item.
        $overview = $this->factory->createItem('menu_item.overview', [
            'route' => 'bkstg_production_overview',
            'routeParameters' => ['production_slug' => $group->getSlug()],
            'extras' => [
                'icon' => 'tachometer-alt',
                'translation_domain' => BkstgCoreBundle::TRANSLATION_DOMAIN,
            ],
        ]);
        $menu->addChild($overview);
    }
public function addOverviewItem(ProductionMenuCollectionEvent $event): void
    {
        $menu = $event->getMenu();
        $group = $event->getGroup();

        // Create overview menu item.
        $overview = $this->factory->createItem('menu_item.overview', [
            'route' => 'bkstg_production_overview',
            'routeParameters' => ['production_slug' => $group->getSlug()],
            'extras' => [
                'icon' => 'tachometer-alt',
                'translation_domain' => BkstgCoreBundle::TRANSLATION_DOMAIN,
            ],
        ]);
        $menu->addChild($overview);
    }
public function addOverviewItem ( ProductionMenuCollectionEvent $ event ) : void { $ menu = $ event -> getMenu ( ) ; $ group = $ event -> getGroup ( ) ; // Create overview menu item. $ overview = $ this -> factory -> createItem ( 'menu_item.overview' , [ 'route' => 'bkstg_production_overview' , 'routeParameters' => [ 'production_slug' => $ group -> getSlug ( ) ] , 'extras' => [ 'icon' => 'tachometer-alt' , 'translation_domain' => BkstgCoreBundle :: TRANSLATION_DOMAIN , ] , ] ) ; $ menu -> addChild ( $ overview ) ; }
Add the overview menu item.

@param ProductionMenuCollectionEvent $event The menu collection event.

@return void
Add the overview menu item .