private function loadFromMemory($menuCode)
    {
        return isset($this->menus[$menuCode])
            ? $this->menus[$menuCode]
            : null;
    }
private function loadFromMemory($menuCode)
    {
        return isset($this->menus[$menuCode])
            ? $this->menus[$menuCode]
            : null;
    }
private function loadFromMemory ( $ menuCode ) { return isset ( $ this -> menus [ $ menuCode ] ) ? $ this -> menus [ $ menuCode ] : null ; }
Try to get menu configuration from memory.

@param string $menuCode Code of the menu

@return MenuInterface|null Menu configuration
Try to get menu configuration from memory .