Looks like you misread the Task API documentation.
Your subclass and array should be created under your plugin/block folder, not moodleroot.
And, you should not modify core Moodle code.
Looks like you misread the Task API documentation.
Your subclass and array should be created under your plugin/block folder, not moodleroot.
And, you should not modify core Moodle code.