I want to get a list of enrolment methods for a course that I know has manual enrolments and 2 cohorts synced.
I have tried core_enrol_get_course_enrolment_methods but cannot get this to return anything but an empty array . I saw a post related to this from 2016 but no resolution - I can't imagine it has been a problem since then.
I also tried using core_course_get_courses_by_field - this was slightly more successful as it at least lists the enrolment plugin types:
It is helpful to know there are cohort syncs in place but its not much use without knowing what they are.
It is also interesting to note that the discrepancy between the British spelling of enrolment in the call and the American spelling 'enrollment' in the result!
Any advice would be appreciated. I'm happy to raise a bug if I am not missing something.