Just braindamage on my part, you can actually access it directly ( ->instanceid ). I was fooled by the leading underscore in the documentation.
Get course id from inside block object
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.