Looks like I was using the wrong help document orignally and was using an older one.
It looks like I fixed the issue by changing function to classname in the tasks array.
this is where I found the better answer: https://docs.moodle.org/dev/Task_API
Looks like I was using the wrong help document orignally and was using an older one.
It looks like I fixed the issue by changing function to classname in the tasks array.
this is where I found the better answer: https://docs.moodle.org/dev/Task_API