public function getPageTypeMap()
    {
        $pageTypeMap = [];

        $pageTypes = SiteTree::page_type_classes();
        foreach ($pageTypes as $pageType) {
            $pageTypeMap[$pageType] = singleton($pageType)->i18n_singular_name();
        }

        asort($pageTypeMap);

        return $pageTypeMap;
    }
public function getPageTypeMap()
    {
        $pageTypeMap = [];

        $pageTypes = SiteTree::page_type_classes();
        foreach ($pageTypes as $pageType) {
            $pageTypeMap[$pageType] = singleton($pageType)->i18n_singular_name();
        }

        asort($pageTypeMap);

        return $pageTypeMap;
    }
public function getPageTypeMap ( ) { $ pageTypeMap = [ ] ; $ pageTypes = SiteTree :: page_type_classes ( ) ; foreach ( $ pageTypes as $ pageType ) { $ pageTypeMap [ $ pageType ] = singleton ( $ pageType ) -> i18n_singular_name ( ) ; } asort ( $ pageTypeMap ) ; return $ pageTypeMap ; }
Return a list of the different page types available to the CMS

@return array
Return a list of the different page types available to the CMS