Retrieve the header menu.

@return array
351503
public function headerMenu()
    {
        if ($this->headerMenu === null) {
            $dashboardConfig = $this->dashboardConfig();

            if (isset($dashboardConfig['secondary_menu'])) {
                $this->headerMenu = $this->createHeaderMenu($dashboardConfig['secondary_menu']);
            } else {
                $this->headerMenu = $this->createHeaderMenu();
            }
        }

        return $this->headerMenu;
    }
1246248
public function getHeaders()
    {
        $headers = array_change_key_case($this->httpRequest->getHeaders(), CASE_LOWER);

        foreach ($headers as $header) {
            $header = array_map(function ($value) {
                return strtolower($value);
            }, $header);
        }

        return $headers;
    }
801728
private function get_top_level_menu_slug() {
            return ( $this->is_addon() ?
                $this->get_parent_instance()->_menu->get_top_level_menu_slug() :
                $this->_menu->get_top_level_menu_slug() );
        }
182778
public function getHeaders()
    {
        $headers = $this->header;
        $headers[] = 'User-Agent: ' . $this->getUserAgent();
        $itemId = $this->indexQueueItem->getIndexQueueUid();
        $pageId = $this->indexQueueItem->getRecordPageId();

        $indexerRequestData = [
            'requestId' => $this->requestId,
            'item' => $itemId,
            'page' => $pageId,
            'actions' => implode(',', $this->actions),
            'hash' => md5(
                $itemId . '|' .
                $pageId . '|' .
                $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']
            )
        ];

        $indexerRequestData = array_merge($indexerRequestData, $this->parameters);
        $headers[] = 'X-Tx-Solr-Iq: ' . json_encode($indexerRequestData, JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_AMP | JSON_HEX_QUOT | JSON_UNESCAPED_SLASHES);

        return $headers;
    }
1173690
protected function getEditMenuItems()
    {
        $resets = $this->findMenuItems($this->menuActionController, 'reset');
        foreach ($resets as $resetPw) {
            if ($resetPw instanceof \Gems_Menu_SubMenuItem) {
                $resetPw->set('label', $this->_('password'));
            }
        }
        return array_merge(
                parent::getEditMenuItems(),
                $resets,
                $this->findMenuItems($this->menuActionController, 'mail')
                );
    }
297244
public function getMenu()
    {
        if (!$this->menu) {

            foreach ($this->getAllMenus() as $menu) {
                $menu->configureAdminMenu($this);
            }
        }

        return parent::getMenu();
    }
11741
protected function menu()
    {

        $this->Benchmark->start('getMenu');
        try {
            $menu = $this->CMSNavItemService->getMenu();
        } catch (Exception $e) {
            return '';
        }
        $this->Benchmark->end('getMenu');

        $this->Benchmark->start('buildMenu');
        $dom_id    = $this->getParameter('id');
        $dom_class = $this->getParameter('class');

        $this->matchedCurrentURI = false;

        $root_options = array();
        if (!empty($dom_id))
            $root_options[] = "id='{$dom_id}'";
        if (!empty($dom_class))
            $root_options[] = "class='{$dom_class}'";

        $family_tree = "<ul " . join(' ', $root_options). ">\n";

        $this->requestURI = ltrim($this->Request->getAdjustedRequestURI(), '/');

        foreach ( $menu as $parent ) {
            $family_tree .= $this->_buildMenuTree($parent, "parent", "<span>%s</span>", true);
        }

        $family_tree .= "</ul>\n";
        $this->Benchmark->end('buildMenu');

        return $family_tree;
    }
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;
    }
264276
public function getHeaders()
    {
        $headers = [];
        foreach ($this->srv as $k => $v) {
            $headers[self::normalizeHeaderKeyName($k)] = $v;
        }

        return $headers;
    }
234078
public function headers()
    {
        if($this->headers === null) {
            $data = $this->serverRequest->getHeaders();
            $this->headers = $this->builder->headers($data);
        }
        
        return $this->headers;
    }
317209
public function getHeaders()
    {
        $headers = array_merge(
            $this->getRequestLineHeaders(),
            $this->getStandardHeaders(),
            $this->getCookieHeaders()
        );

        return $headers;
    }
625067
public function getHeaders()
    {
        $headers = array();
        foreach ($this->response->getHeaders()->getAll() as $header => $headerObject) {
            $allHeaderValues = $headerObject->toArray();
            $headers[strtolower($header)] = implode(';', $allHeaderValues);
        }

        return $headers;
    }
1348671
public static function cmsMenus()
    {
        $result = [];
        foreach(Menu::all() as $menu){
            $result[$menu->slug] = [
              'menuID' => $menu->menuID,
              'title' => $menu->title,
              'menuLinks' => self::cmsMenuLinks(Menu::getMenuLinks($menu->slug)),
            ];
        }
        return $result;
    }
295197
public static function getHeaderNavigation()
    {
        $builder = self::where('is_hidden', 0);
        $builder->where('is_header', 1);
        if (!\Auth::check()) {
            $builder->where('name', '!=', 'My Account');
        }
        $items = $builder->orderBy('header_order')
            ->select('id', 'icon', 'name', 'title', 'description', 'slug', 'url', 'parent_id',
                'views')
            ->get()
            ->groupBy('parent_id');

        if (count($items)) {
            $items['root'] = collect();
            if (isset($items['']) || isset($items[0])) {
                $items['root'] = isset($items['']) ? $items[''] : $items[0];
                unset($items['']);
                unset($items[0]);
            }
        }

        return $items;
    }
1061731
protected function getHeaders()
    {
        if (function_exists('headers_list') && $headers = headers_list()) {
            foreach ((array) $headers as $header) {
                if (strpos($header, ':')) {
                    $header = explode(':', strtolower($header), 2);
                    $this->headers[trim($header[0])] = trim($header[1]);
                }
            }
        }
    }
992764
protected function interpretMenuData()
    {
        $layout = $this->configInterpreter->interpretLayout($this->core->moduleConfig('menu.layout', []));

        return [
            $layout,
            $this->permissionsFilter->buildPermissionsIndex($layout)
        ];
    }
1034408
private function getHeaderArray() {
		$head = Array();
		$head[0] = $this->headerNames;
		$head = $this->getAttaches($head, $this->headerAttaches);
		return $head;
	}