Adds beforeElementDeleteForSite method to the SuperTableField.
Adds super-table/utils/prune-orphaned-super-table-blocks command, which loops through each of the sites and, for each site, looks for Super Table blocks which exist for that site but whose owner doesn’t. Resulting blocks are passed to services\Elements::deleteElementsForSite() so they can be deleted for that site.
Replicates https://github.com/craftcms/cms/pull/14154 for Super Table.
beforeElementDeleteForSite
method to theSuperTableField
.super-table/utils/prune-orphaned-super-table-blocks
command, which loops through each of the sites and, for each site, looks for Super Table blocks which exist for that site but whose owner doesn’t. Resulting blocks are passed toservices\Elements::deleteElementsForSite()
so they can be deleted for that site.