Ingleby, this is from the .gov.uk website.
If you are returning from Spain (including from the Balearics and Canaries) on or after 26 July you will be required to quarantine on your return to the UK, but the FCO is not advising you to cut short your visit. You should contact your tour operator...