Skip to content
This repository has been archived by the owner on Jan 5, 2018. It is now read-only.

Issue #2645458 by smaz, kmoll: update render trait to handle #item_at… #210

Closed
wants to merge 1 commit into from

Conversation

kmoll
Copy link
Contributor

@kmoll kmoll commented Apr 7, 2016

…tributes array element that image_formatter expects

…tributes array element that image_formatter expects
@davereid
Copy link
Member

Would this be more appropriate to do in ImageFieldFormatter?

@kmoll
Copy link
Contributor Author

kmoll commented Apr 20, 2016

@davereid I would think that might be a better idea. I am still a little confused why the ImageFieldFormatter uses #item_attributes over #attributes. It seems to be the only place where this is the case. I think if its possible, we update that. If there are good reasons why its that way, then we would have to handle here, I think. Let me know your thoughts.

@davereid
Copy link
Member

The core image field formatters require #item_attributes to be set, which is strange, but there's not much we can do about that from Entity Embed's side of things, we can only ensure the correct values are set.

@slashrsm
Copy link
Member

Unfortunately we can't move this as we add align, caption, ... classes after formatter plugin has returned the render array. Looking at test fails now.

@slashrsm
Copy link
Member

Attempt to fix test: https://www.drupal.org/node/2645458#comment-11117123

@davereid
Copy link
Member

Closing as this was fixed via Drupal.org

@davereid davereid closed this Apr 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants