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;
    }