Closed (fixed)
Project:
Background Image
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2018 at 11:20 UTC
Updated:
7 Apr 2020 at 20:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
cgoffin commentedI created a patch to fix this issue.
Comment #3
cgoffin commentedAdded an extra check if we have an empty entity.
Comment #4
markhalliwellThis looks promising and more like the correct approach. Marking #2977441: Support multilingual for property "overlay text" as a dup of this issue.
Comment #6
markhalliwellThe language manager should be wrapped in a static getter method.
Comment #7
p-neyens commentedUse the language manager getter from the class ContentEntityBase.
Added extra check to see if the hasTranslation method exists. Only content entities has this class. @see the ContentEntityBase abstract class. When we add a background image to a webform it breaks at this moment.
Comment #8
markhalliwellAlmost there. Just going to clean it up a bit.
Comment #9
markhalliwell