Retrieve the display type of the secondary menu's contents.

@return string|null
501170
public function displayType()
    {
        if ($this->displayType === null) {
            $ident    = $this->ident();
            $metadata = $this->adminSecondaryMenu();

            if (isset($metadata[$ident]['display_type'])) {
                $this->setDisplayType($metadata[$ident]['display_type']);
            } else {
                $this->displayType = '';
            }
        }

        return $this->displayType;
    }
511399
public function getType() : ?string 
    {
        if ( ! $this->hasType()) {
            $this->setType($this->getDefaultType());
        }
        return $this->type;
    }
1228850
public function displayOptions()
    {
        if ($this->displayOptions === null) {
            $this->setDisplayOptions($this->defaultDisplayOptions());

            $ident    = $this->ident();
            $metadata = $this->adminSecondaryMenu();

            if (isset($metadata[$ident]['display_options'])) {
                $options = $metadata[$ident]['display_options'];

                if (!is_array($options)) {
                    throw new RuntimeException('The display options must be an associative array.');
                }

                $this->setDisplayOptions(array_merge($this->displayOptions, $options));
            }
        }

        return $this->displayOptions;
    }
1346685
public function getDisplay()
    {
        $display = $this->getServiceLocator()
                        ->get( 'Config' )
                             [ 'modules' ]
                             [ 'Grid\User' ]
                             [ 'display' ];

        if ( null !== $this->displayRegisterLink )
        {
            $display['registerLink'] = (bool) $this->displayRegisterLink;
        }

        if ( null !== $this->displayPasswordRequestLink )
        {
            $display['passwordRequestLink'] = (bool) $this->displayPasswordRequestLink;
        }

        if ( null !== $this->displayLoginWithLink )
        {
            $display['loginWithLink'] = (bool) $this->displayLoginWithLink;
        }

        return $display;
    }
89293
public function getDisplayItemType(): string {
		$displayItemType = $this->statelessGuiFieldDisplayable->getDisplayItemType($this->eiu);
		ArgUtils::valEnum($displayItemType, DisplayItem::getTypes());
		return $displayItemType;
	}
303253
public function getMainItem()
    {
        $menuPage = $this->menuBuilder->getTopNavbar()->getChild('menu.page');

        if ($menuPage) {
            return $menuPage;
        } else {
            return $this->menuBuilder->createDropdownMenuItem(
                $this->menuBuilder->getTopNavbar(),
                'menu.page'
            );
        }
    }
1247519
protected function getRenderType()
    {
        $headers = $this->request->getHeaders();
        
        if (isset($headers['X-Requested-With'])) {
            return 'json';
        }
        
        if ($this->input('get.ajax')) {
            return 'json';
        }
        
        $contentType = $this->request->detectContentType();
        
        if (strpos($contentType, 'json')) {
            return 'json';
        } elseif (strpos($contentType, 'xml')) {
            return 'xml';
        } elseif (strpos($contentType, 'html')) {
            return 'html';
        } elseif (strpos($contentType, 'plain')) {
            return 'text';
        }
        
        return 'html';
    }
985448
protected function getLayoutType() {
        $detector = new MobileDetect();
        $isMobile = $detector->isMobile();
        $isTablet = $detector->isTablet();
        unset($detector);

        return array('isMobile' => $isMobile, 'isTablet' => $isTablet, 'isDesktop' => (!$isMobile && !$isTablet));
    }
1129732
public function menuThemes(): ?Menu
    {
        $themes = app(ModuleService::class)->findByInterface(ModuleThemeInterface::class, false, true);

        $current_theme = app(ModuleThemeInterface::class);

        if ($themes->count() > 1) {
            $submenus = $themes->map(static function (ModuleThemeInterface $theme) use ($current_theme): Menu {
                $active     = $theme->name() === $current_theme->name();
                $class      = 'menu-theme-' . $theme->name() . ($active ? ' active' : '');

                return new Menu($theme->title(), '#', $class, [
                    'onclick'    => 'return false;',
                    'data-theme' => $theme->name(),
                ]);
            });

            return new Menu(I18N::translate('Theme'), '#', 'menu-theme', [], $submenus->all());
        }

        return null;
    }
7674
protected function secondaryMenu()
    {
        if (!isset($this->secondaryMenu)) {
            throw new RuntimeException(sprintf(
                'Secondary Menu Group Factory is not defined for "%s"',
                get_class($this)
            ));
        }

        return $this->secondaryMenu;
    }
300956
protected function getThemeAssistantStylesheet()
	{
		if (!$GLOBALS['objPage'] || !$GLOBALS['objPage']->getRelated('layout')) {
			return null;
		}
		if (!$stylesheets = $GLOBALS['objPage']->getRelated('layout')->external) {
			return null;
		}

		$stylesheets = \StringUtil::deserialize($stylesheets);
		foreach ($stylesheets as $stylesheet) {
			$file = \FilesModel::findByUuid($stylesheet);
			if ($file && $file->path && file_exists(TL_ROOT . '/' . $file->path . '.base')) {
				return $file->path . '.base';
			}
		}

		return null;
	}
538280
public function SectionTitle()
    {
        $title = $this->menu_title();
        if ($title) {
            return $title;
        }

        foreach ($this->MainMenu() as $menuItem) {
            if ($menuItem->LinkingMode != 'link') {
                return $menuItem->Title;
            }
        }
        return null;
    }
265407
public function getMenu()
    {
        if ( null === $this->_menu &&
             ! empty( $this->menuId ) )
        {
            $this->_menu = $this->getMenuModel()
                                ->find( $this->menuId );
        }

        return $this->_menu;
    }
383194
public function getPageTypeName()
    {
        if (!isset($this->pageType)) {
            $this->pageType = $this->getPageTypeObject();
        }
        if (is_object($this->pageType)) {
            return $this->pageType->getPageTypeDisplayName();
        }
    }
1199457
public function getMediaType()
    {
        $contentType = $this->getServer('CONTENT_TYPE');
        if (!empty($contentType)) {
            if ($parts = explode(';', $contentType)) {
                return trim($parts[0]);
            }
        }

        return '';
    }
491691
public function getAvailableMenu()
    {
        $availableMenus = array();
        $menus = $this->getMenu();
        if (!$menus)
        {
            return (NULL);
        }
        foreach ($menus as $menu)
        {
            $availableMenus[] = $menu->getLabel();
        }
        return ($availableMenus);
    }
1110968
public function mainMenu()
    {
        if ($this->mainMenu === null) {
            $options = null;

            if ($this instanceof DashboardContainerInterface) {
                $dashboardConfig = $this->dashboardConfig();

                if (isset($dashboardConfig['secondary_menu'])) {
                    $options = $dashboardConfig['secondary_menu'];
                }
            }

            $this->mainMenu = $this->createMainMenu($options);
        }

        return $this->mainMenu;
    }