Add the overview menu item.

@param ProductionMenuCollectionEvent $event The menu collection event.

@return void
774884
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);
    }
695503
public void addMenuPresenter(MenuPresenter presenter) {
        mPresenters.add(new WeakReference<MenuPresenter>(presenter));
        presenter.initForMenu(mContext, this);
        mIsActionItemsStale = true;
    }
589749
public function addInformation(CollectMetaModelAttributeInformationEvent $event)
    {
        if (!\count($information = $event->getAttributeInformation())) {
            return;
        }

        if (!\count($fileInformation = $this->collectFileInformation($information))) {
            return;
        }

        $event->setAttributeInformation($this->updateInformation($fileInformation, $information));
    }
1154866
private void menuFileMenuSelected(javax.swing.event.MenuEvent evt) {//GEN-FIRST:event_menuFileMenuSelected
    final TabTitle title = this.getFocusedTab();
    updateMenuItemsForProvider(title == null ? null : title.getProvider());
  }
956011
public function onStoryAggregation(AnEvent $event)
    {
        if (!empty($this->_story_aggregation)) {
            $event->aggregations->append(array(
                $this->component => $this->_story_aggregation,
            ));
        }
    }
123981
public function addWorkflowProfile(GroupFormEvent $event)
    {
        $builder = $event->getBuilder();
        $group = $builder->getData();
        $configuration = array();
        $workflowProfiles = $this->workflowProfileRepository->findAll();
        foreach ($workflowProfiles as $workflowProfile) {
            $configuration['default']['row'][] = $workflowProfile->getLabel($this->contextManager->getBackOfficeLanguage());
        }
        $configuration['default']['column'][NodeInterface::ENTITY_TYPE] = $this->translator->trans('open_orchestra_workflow_admin.profile.page');
        if ($group instanceof GroupInterface) {
            $site = $group->getSite();
            if (!empty($site->getContentTypes())) {
                $contentTypes = $this->contentTypeRepository->findAllNotDeletedInLastVersion($site->getContentTypes());
                foreach ($contentTypes as $contentType) {
                    $configuration['default']['column'][$contentType->getContentTypeId()] = $contentType->getName($this->contextManager->getBackOfficeLanguage());
                }
            }
        }
        $builder->setAttribute('group_render', array_merge($builder->getAttribute('group_render'), array(
            'profile' => array(
                'rank' => '2',
                'label' => 'open_orchestra_workflow_admin.form.profile',
            )
        )));
        $builder->setAttribute('sub_group_render', array_merge($builder->getAttribute('sub_group_render'), array(
            'backoffice' => array(
                'rank' => '0',
                'label' => 'open_orchestra_workflow_admin.form.backoffice',
            )
        )));
        $builder->add('workflow_profile_collections', 'oo_check_list_collection', array(
            'label' => false,
            'configuration' => $configuration,
            'group_id' => 'profile',
            'sub_group_id' => 'backoffice',
            'required' => false
        ));
        $builder->get('workflow_profile_collections')->addModelTransformer($this->workflowProfileCollectionTransformer);
   }
1054337
public void addMenuItem(CmsContextMenuItemWidget menuItem) {

        menuItem.setOverlay(this);

        m_menuItems.add(menuItem);
        m_root.add(menuItem);
    }
1021037
public function postLoad(LifecycleEventArgs $event)
    {
        $entity = $event->getEntity();

        if (! ($entity instanceof Menu)) {
            return;
        }

        $builder = $this->builderRegistry->getBuilder($entity->getType());
        $entity->setBuilder($builder);
    }
791988
public function onMenuConfigure(ConfigureMenuEvent $event)
    {
        if (!$this->permissionResolver->hasAccess('uicron', 'list')) {
            return;
        }

        $menu = $event->getMenu();

        $cronsMenu = $menu->getChild(MainMenuBuilder::ITEM_ADMIN);
        $cronsMenu->addChild(self::ITEM_CRONS, ['route' => 'edgar.ezuicron.list']);
    }
849042
public function apply($event): void
    {
        $this->handleRecursively($event);

        ++$this->playhead;
        $this->uncommittedEvents[] = DomainMessage::recordNow(
            $this->getAggregateRootId(),
            $this->playhead,
            new Metadata([]),
            $event
        );
    }
569677
public function addEvent(EventMessage $event)
    {
        $this->events[] = $event;
        if (stristr($event->getEventList(), 'complete') !== false
            || stristr($event->getName(), 'complete') !== false
            || stristr($event->getName(), 'DBGetResponse') !== false
        ) {
            $this->completed = true;
        }
    }
519333
public function onMenuTree(MenuEvent $event)
    {
        if (!$event->hasSite()) {
            return;
        }

        $deleted = [];
        $changed = [];

        foreach ($event->getDeletedItems() as $item) {
            $deleted[] = $item->getNodeId();
        }
        if ($deleted) {
            // @todo
            //  if node is not present on site, we should clean up the references
            //  except for some types such as news (list by type)
        }

        foreach ($event->getTree()->getAll() as $item) {
            $changed[] = $item->getNodeId();
        }
        if ($changed) {
            $this->nodeManager->createReferenceBulkInSite($event->getSite()->getId(), $changed);
        }
    }
1040044
protected function propagateCollectionChangedEvent(CollectionChangedEvent $event)
    {
        if ($event->getType() === CollectionChangedEvent::ITEM_REMOVED) {
            $event->getItem()->removeEntityChangedListener($this);
        } else {
            $event->getItem()->addEntityChangedListener($this);
        }

        parent::propagateCollectionChangedEvent($event);
    }
1179279
public function addGlobal(Event $event)
    {
        $menuTemplate = $this->menuBuilder->getBottomRightNavbar()->getChild('menu.template');

        $menuTemplate->addChild('menu.template.new', [
            'route'          => 'victoire_template_new',
            'linkAttributes' => [
                'class' => 'v-drop__anchor',
            ],
        ])->setLinkAttribute('data-toggle', 'vic-modal');

        $menuTemplate->addChild('menu.template.index', [
            'route'          => 'victoire_template_index',
            'linkAttributes' => [
                'class' => 'v-drop__anchor',
            ],
        ])->setLinkAttribute('data-toggle', 'vic-modal');
    }
213006
public function onAdd(OrderItemEvent $event)
    {
        $order = $event->getOrder();
        $item  = $event->getItem();

        $order->addItem($item);
    }
1117046
public function iGoToMenuItem(string $item)
    {
        $adminMenu = $this->admin_page->getMenu();
        $adminMenu->clickMenuItem($item);
    }
1143240
public function overviewAction() {
        if ($this->overviewSnippets) {
            $params = $this->_processParameters($this->overviewParameters);

            $menuList          = $this->menu->getMenuList();
            $menuList->addParameterSources($this->request, $this->menu->getParameterSource());
            $menuList->addCurrentParent($this->_('Cancel'));
            $params['buttons'] = $menuList;
            $this->addSnippets($this->overviewSnippets, $params);
        }
    }