Needs review
Project:
Paragraphs
Version:
8.x-1.x-dev
Component:
Experimental Widget
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2020 at 09:29 UTC
Updated:
31 Jan 2026 at 15:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dwkitchen commentedPatch attached
Comment #3
berdirThe storage is used to access the icon information. If there's no bundle or a different one then this is likely going to fail on the getIconUrl() call, this doesn't really seem to help much? There's also at least one other call:
$paragraphs_entity->type->entity->getIconUrl()Maybe that feature should be specific to the actual paragraph entity type? Could wrap it in a method and only bother to do that if the entity type matches?
Comment #4
dwkitchen commentedI think adding this in before the
trywould throw the correct error if the entity doesn't implement the PargraphInterface - which requires thegetIconUrl()functionHowever, the
isApplicable()of the widget shouldn't allow the widget to be used on an entity that doesn't implementgetIconUrl()Let me know what you think and I will update the patch.
Comment #5
dwkitchen commentedAdded the
entityClassImplimentscheck as proposed.Comment #6
socialnicheguru commentedno longer apply to dev version of paragraphs
Comment #8
dwkitchen commentedI have opened a new merge request.