public static function getNameList()
    {
        $result = [];
        $pages = self::sortBy('baseFileName')->all();
        foreach ($pages as $page) {
            $result[$page->baseFileName] = $page->title . ' (' . $page->baseFileName . ')';
        }

        return $result;
    }
public static function getNameList()
    {
        $result = [];
        $pages = self::sortBy('baseFileName')->all();
        foreach ($pages as $page) {
            $result[$page->baseFileName] = $page->title . ' (' . $page->baseFileName . ')';
        }

        return $result;
    }
public static function getNameList ( ) { $ result = [ ] ; $ pages = self :: sortBy ( 'baseFileName' ) -> all ( ) ; foreach ( $ pages as $ page ) { $ result [ $ page -> baseFileName ] = $ page -> title . ' (' . $ page -> baseFileName . ')' ; } return $ result ; }
Helper that returns a nicer list of pages for use in dropdowns.
@return array
Helper that returns a nicer list of pages for use in dropdowns .