The code fixes issue when there is a recursive entity reference implementation.
The code fixes issue when there is a recursive entity reference implementation. For eg. Content Types -> A field with Entity Reference to Paragraph Types -> Paragraph Type -> A Entity reference field to another content type
Edited by Sathishkumar Vasudevan