Easiest way to find out if a paragraph entity is orphaned from the latest revision

Created on 5 May 2023, over 1 year ago
Updated 6 June 2024, 6 months ago

Hi,

Is there a way to tell that a paragraph entity is or isn't still attached to a node without loading the node and checking if the paragraph's id is in the entity reference field? As this is quite taxing for an AJAX call I'm trying to make.

If not I guess I can just add a bool field to the paragraph and set it as true when it gets removed from the node.

Thanks

💬 Support request
Status

Active

Version

1.0

Component

Miscellaneous

Created by

🇬🇧United Kingdom joehuggans Harrogate, UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024