You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Backgroup:
Currently, in order to pass ImageValueObject to a pattern, you are doing preprocess to prepare the image e.g. here. I think, this is very complex and requires to do preprocess for each entity type and each image field!
Solution:
To avoid all these preprocesses, I suggest to create a twig extension that converts a render array that contains ImageItem to ImageValueObject.
Example from UCPKN:
Find the extension here
Find usages example here
Please let me know your thoughts?
The text was updated successfully, but these errors were encountered:
Hi @msnassar, thanks for opening this issue! We appreciate your help. Would you be interested in submitting a pull request with your suggested improvement? Your contribution would be valuable to all of us :-)
Backgroup:
Currently, in order to pass ImageValueObject to a pattern, you are doing preprocess to prepare the image e.g. here. I think, this is very complex and requires to do preprocess for each entity type and each image field!
Solution:
To avoid all these preprocesses, I suggest to create a twig extension that converts a render array that contains ImageItem to ImageValueObject.
Example from UCPKN:
Find the extension here
Find usages example here
Please let me know your thoughts?
The text was updated successfully, but these errors were encountered: