- Issue created by @bsztreha
- last update
over 1 year ago 34 pass, 8 fail
There is a case, when using Paragraph entity in multiple fields and you would like to reference the same entity. Currently it's not really possible, because parent information will be updated when you save the host entity. So every time it will be changed vice-versa.
I know it is not designed for this kind of working, maybe it is only an issue for me.
Create a field with Entity reference revisions with paragraph target entity and created another field on the same Entity with same Paragraph bundle. Create a new entity and fill the first field. Create a code that will update the second field with the ID of paragraph that created in the first save. That will trigger the changes in parent information
Created a patch that not a best solution, but if you can set a primary parent reference, then with this modification you can ignore the rest fields in the storage config page, then it won't create unnecessary revisions in Paragraph entity.
TBD
New form option in field instance config page.
-
-
Needs work
1.0
Code