How to return a list of objects of type 'mytype' from a plugin

Oops, wrong post (though relevant). Here’s the one I meant: