...
You may also want to make use of workflows in your plugin which are documented here:https://help.totaralearning.com/display/DEV/Workflows
In particular:
- The coursecreate workflow manager allows you to hook into the process of creating a course and redirect the user to a flow which includes creation from your marketplace. See the implementation in totara/contentmarketplace/contentmarketplaces/goone/classes/workflow/core_course/coursecreate/contentmarketplace.php.
- The exploremarketplace workflow manager allows you to make your plugin available as an option when you click the 'Explore marketplace' button from the Catalogue screen. See the implementation in totara/contentmarketplace/contentmarketplaces/goone/classes/workflow/totara_contentmarketplace/exploremarketplace/goone.php.