Problem/Motivation

This is a handy module to assess the extent of broken references but if it would be even better if it reported all the source entity ids that have broken references..

Comments

jonathan_hunt created an issue. See original summary.

jonathan_hunt’s picture

It's a bit hacky but I've added Source ids and Target ids columns into the Broken entity references report table. The source ids are linked to the edit form (e.g. for media or node), so that you can click through and save the entity, in order to tidy dangling references. I found that the save action from /admin/content is insufficient to tidy the broken references.

jonathan_hunt’s picture

StatusFileSize
new2.22 KB

Fix patch by declaring namespaces.

jonathan_hunt’s picture

StatusFileSize
new2.48 KB

Avoid PHP error by properly accumulating target_ids.

jonathan_hunt’s picture

Next it would be nice to have a button that initiates a batch process to iterate over the source ids and edit/save the entity...

jonathan_hunt’s picture

StatusFileSize
new3.29 KB

Improved patch that hardcodes building edit routes only for node and media entity types.