{@inhericDoc}
@see \MyArtJaub\Webtrees\Module\ModuleMenuItemInterface::getMenu()
543667
public function getMenu(Tree $tree, $reference = null) {
        $tree_url = $tree ? $tree->getNameUrl() : '';
        return new Menu($this->getTitle(), 'module.php?mod=' . $this->getName() . '&mod_action=Certificate@listAll&ged=' . $tree_url, 'menu-maj-list-certificate', array('rel' => 'nofollow'));
    }
428783
protected function getMenuList()
    {
        $links = $this->menu->getMenuList();

        $links->addParameterSources($this->request, $this->menu->getParameterSource());
        $links->addCurrentParent($this->_('Cancel'));

        if ($this->menuShowSiblings) {
            $links->addCurrentSiblings();
        }

        if ($this->menuShowChildren) {
            $links->addCurrentChildren();
        }

        return $links;
    }
1019089
public function getSubMenu($menuName, $level = 1)
    {
        $currentParent = false;

        $mainMenuIterator = $this->getFullMenu($menuName);

        if (!$mainMenuIterator) {
            return false;
        }

        foreach ($mainMenuIterator as $menuItem) {
            if ($this->currentPath === $menuItem->getPath()
                || $this->currentPath === $menuItem->getInternalUrl()
            ) {
                $currentParent = $menuItem->getParentByLevel($level);
            }
        }

        if (!$currentParent) {
            return false;
        }

        $menuIterator = $this->menuManager->getChildrenByStatus(
            $currentParent,
            false,
            null,
            'ASC',
            false,
            $this->viewStatus
        );

        return $menuIterator;
    }
80347
public function getMenu($level = 1)
    {
        if ($controller = $this->getCurrentController(PageController::class)) {
            return $controller->getMenu($level)->exclude('HideFromMainMenu', 1);
        }
    }
188515
public function getMenu($menuTypeId, $language = null)
    {
        if( is_null($language) ) {
            $language = app()->getLocale();
        }

        if( $this->cacheEnabled ) {
            $cacheName = self::getCacheName($menuTypeId, $language);

            if( Cache::has($cacheName) ) {
                return Cache::get($cacheName);
            }
        }

        return $this->getMenuItems($menuTypeId, $language);
    }
318802
public static function getMenuList()
    {
        $menus = get_terms('nav_menu');

        if (! isset($menus) && empty($menus)) {
            return;
        }

        $menuList = array();

        foreach ($menus as $menu) {
            $menuList[] = $menu->name;
        }

        return $menus;
    }
812533
public function getMenu($name = null, $options = array())
    {
        if (!isset($name))
        {
            $app = JFactory::getApplication();
            $name = $app->getName();
        }

        try
        {
            if (!class_exists('JMenu' . ucfirst($name))) {
                jimport('cms.menu.'.strtolower($name));
            }

            $menu = JMenu::getInstance($name, $options);
        }
        catch (Exception $e) {
            return null;
        }

        return $menu;
    }
856316
public function getMenu(Tree $tree): ?Menu
    {
        $submenu = [
            $this->calendarDayMenu($tree),
            $this->calendarMonthMenu($tree),
            $this->calendarYearMenu($tree),
        ];

        return new Menu(I18N::translate('Calendar'), '#', 'menu-calendar', ['rel' => 'nofollow'], $submenu);
    }
77549
public function getMenu()
    {
        $entities = $this->getManifest()->getEntities();
        $output = new ArrayList();
        $record = $this->getPage();
        $current = $this->getEntity();

        foreach ($entities as $entity) {
            $checkLang = $entity->getLanguage();
            $checkVers = $entity->getVersion();

            // only show entities with the same language or any entity that
            // isn't registered under any particular language (auto detected)
            if ($checkLang && $checkLang !== $this->getLanguage()) {
                continue;
            }

            if ($current && $checkVers) {
                if ($entity->getVersion() !== $current->getVersion()) {
                    continue;
                }
            }

            $mode = 'link';
            $children = new ArrayList();

            if ($entity->hasRecord($record) || $entity->getIsDefaultEntity()) {
                $mode = 'current';

                // add children
                $children = $this->getManifest()->getChildrenFor(
                    $entity->getPath(),
                    ($record) ? $record->getPath() : $entity->getPath()
                );
            } else {
                if ($current && $current->getKey() == $entity->getKey()) {
                    continue;
                }
            }

            $link = $entity->Link();

            $output->push(
                new ArrayData(
                    array(
                    'Title'         => $entity->getTitle(),
                    'Link'          => $link,
                    'LinkingMode'   => $mode,
                    'DefaultEntity' => $entity->getIsDefaultEntity(),
                    'Children'      => $children
                    )
                )
            );
        }

        return $output;
    }
970394
public function getMenuImgs() {
    $re = ['menu'=>'', 'imgs'=>''];
    try{
      $obdr = new DirectoryIterator($_SERVER['DOCUMENT_ROOT'] .'/'. $this->root . $this->imgdr);         // object of the dir
    }
    catch(Exception $e) {
      return '<h2>ERROR from PHP:</h2><h3>'. $e->getMessage() .'</h3><h4>Check the $root value in imgbrowse.php to see if it is the correct path to the image folder; RELATIVE TO ROOT OF YOUR WEBSITE ON SERVER</h4>';
    }

    // get protocol and host name to add absolute path in <img src>
    $protocol = !empty($_SERVER['HTTPS']) ? 'https://' : 'http://';
    $site = $protocol. $_SERVER['SERVER_NAME'] .'/';

    // traverse the $obdr
    foreach($obdr as $fileobj) {
      $name = $fileobj->getFilename();

      // if image file, else, directory (but not . or ..), add data in $re
      if($fileobj->isFile() && in_array($fileobj->getExtension(), $this->imgext)) $re['imgs'] .= '<span><img src="'. $site . $this->root . $this->imgdr . $name .'" alt="'. $name .'" height="50" />'. $name .'</span>';
      else if($fileobj->isDir() && !$fileobj->isDot()) $re['menu'] .= '<li><span title="'. $this->imgdr . $name .'">'. $name .'</span></li>';
    }
    if($re['menu'] != '') $re['menu'] = '<ul>'. $re['menu'] .'</ul>';
    if($re['imgs'] == '') $re['imgs'] = '<h1>No Images</h1>';
    return $re;
  }
1000451
public function getRootNodeMenuItem()
    {
        if (is_null($this->rootNodeMenuItem)) {
            $rootNode = $this->domainConfiguration->getRootNode();
            if (!is_null($rootNode)) {
                $nodeTranslation = $rootNode->getNodeTranslation(
                    $this->locale,
                    $this->includeOffline
                );
                $this->rootNodeMenuItem = new NodeMenuItem(
                    $rootNode,
                    $nodeTranslation,
                    false,
                    $this
                );
            } else {
                $this->rootNodeMenuItem = $this->breadCrumb[0];
            }
        }

        return $this->rootNodeMenuItem;
    }
399521
public static function getModuleMenu($module=null, $parent=null) 
	{
		$moduleInfo = self::getModuleInfo($module, $parent);
		$moduleMenu = $moduleInfo['plugin_menu'];
		
		if($moduleMenu != null) {
			foreach ($moduleMenu as $key => $val) {
				$moduleSubmenu = $val['submenu'];
				if($moduleSubmenu != null) {
					$moduleSubmenuData = array_filter($moduleSubmenu, function($a) {
						$siteType = explode(',', $a['urlRules']['siteType']);
						$userLevel = explode(',', $a['urlRules']['userLevel']);
						
						return in_array(OmmuSettings::getInfo('site_type'), $siteType) && in_array(!Yii::app()->user->isGuest ? Yii::app()->user->level : 0, $userLevel);
					});
					$moduleMenu[$key]['submenu'] = array_values($moduleSubmenuData);	
				}
			}
			
			$moduleMenuData = array_filter($moduleMenu, function($a) {
				$siteType = explode(',', $a['urlRules']['siteType']);
				$userLevel = explode(',', $a['urlRules']['userLevel']);
				return in_array(OmmuSettings::getInfo('site_type'), $siteType) && in_array(!Yii::app()->user->isGuest ? Yii::app()->user->level : 0, $userLevel);
			});
			return array_values($moduleMenuData);
			
		} else
			return false;
	}
6571
public function getMenu($name)
    {
        try {
            $menu = app('TypiCMS.menus')->first(function (Menu $menu) use ($name) {
                return $menu->name == $name;
            });
        } catch (Exception $e) {
            Log::info('No menu found with name “'.$name.'”');

            return;
        }

        return $menu;
    }
1255267
public function getMenu($menu, $ymlPath = null)
    {
        if (!in_array($menu, array_keys($this->menuLoaders))) {
            throw new MenuLoaderNotFoundException($menu);
        }
        $loader = $this->menuLoaders[$menu];
        if ($loader instanceof YamlMenuLoader) {
            $loader->setYamlPath($ymlPath);
        }

        return $loader->getMenu();
    }
842173
public function getMenu(string $menuClass, $options = []): ItemInterface
    {
        // Merge Options
        $options = array_merge($this->defaultOptions, $options);

        // Get Menu
        $menu = $this->container->has($menuClass) ? $this->container->get($menuClass) : new $menuClass();

        // Render
        if ($menu instanceof MenuInterface) {
            return $this->itemProcess->processMenu($menu->createMenu($options), $options);
        }

        return false;
    }
62304
public static function activeMenu($menu = null)
    {
        if ($menu === null) {
            $activeMenu = self::$_activeMenu;
        } else {
            $activeMenu = $menu;
        }

        if (!array_key_exists($activeMenu, self::$_items)) {
            self::$_items[$activeMenu] = [];
        }

        self::$_activeMenu = $activeMenu;
        return $activeMenu;
    }
1098462
public function getMenuModel()
    {
        if ( null === $this->_menuModel )
        {
            $this->_menuModel = $this->getServiceLocator()
                                     ->get( 'Grid\Menu\Model\Menu\Model' );
        }

        return $this->_menuModel;
    }