public static function get_list_of_calendar_types() {
        $calendars = array();
        $calendardirs = \core_component::get_plugin_list('calendartype');

        foreach ($calendardirs as $name => $location) {
            $calendars[$name] = get_string('name', "calendartype_{$name}");
        }

        return $calendars;
    }
public static function get_list_of_calendar_types() {
        $calendars = array();
        $calendardirs = \core_component::get_plugin_list('calendartype');

        foreach ($calendardirs as $name => $location) {
            $calendars[$name] = get_string('name', "calendartype_{$name}");
        }

        return $calendars;
    }
public static function get_list_of_calendar_types ( ) { $ calendars = array ( ) ; $ calendardirs = \ core_component :: get_plugin_list ( 'calendartype' ) ; foreach ( $ calendardirs as $ name => $ location ) { $ calendars [ $ name ] = get_string ( 'name' , "calendartype_{$name}" ) ; } return $ calendars ; }
Returns a list of calendar typess available for use.

@return array the list of calendar types
Returns a list of calendar typess available for use .