Needs review
Project:
Paragraphs
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2021 at 20:55 UTC
Updated:
27 Apr 2022 at 11:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
bgilhome commentedWe can get the parent's field name to check for the paragraph reference instead of checking all referenced entities - updated patch attached. Also fix the Token findWithPrefix() call.
Comment #3
d70rr3s commentedThis can be an issue for programmatically created paragraphs and any code relying on tokens that is implemented during the create phase of the entity lifecycle, e.g.: using tokens on
hook_entity_insert, at that point the parent entity can be set but the reference will not since depends on the paragraph ID.