Project: moodle
Issue MDL-44316: Change the tag API to include the contextid and component when tagging an item.
We want to update the database table 'tag_instance' so that the contextid and component are stored. This will allow for easy deletion of tags when cleaning up particular areas of Moodle, it will also be consistent with other parts of the Moodle API - eg. the file area.
Story points: 40