protected function getPageTypes()
    {
        $pageTypes = array();
        foreach (SiteTree::page_type_classes() as $pageTypeClass) {
            $pageTypes[$pageTypeClass] = SiteTree::singleton($pageTypeClass)->i18n_singular_name();
        }
        asort($pageTypes);
        return $pageTypes;
    }
protected function getPageTypes()
    {
        $pageTypes = array();
        foreach (SiteTree::page_type_classes() as $pageTypeClass) {
            $pageTypes[$pageTypeClass] = SiteTree::singleton($pageTypeClass)->i18n_singular_name();
        }
        asort($pageTypes);
        return $pageTypes;
    }
protected function getPageTypes ( ) { $ pageTypes = array ( ) ; foreach ( SiteTree :: page_type_classes ( ) as $ pageTypeClass ) { $ pageTypes [ $ pageTypeClass ] = SiteTree :: singleton ( $ pageTypeClass ) -> i18n_singular_name ( ) ; } asort ( $ pageTypes ) ; return $ pageTypes ; }
Returns a sorted array suitable for a dropdown with pagetypes and their translated name

@return array
Returns a sorted array suitable for a dropdown with pagetypes and their translated name