Currently it is not possible to possible to get information about the reference field inside a field callback (which was introduced with this commit).

I would suggest that we prepare render arguments for render those callbacks. My patch does not break the current API because it just adds a new parameter for the context.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yannickoo’s picture

Status: Active » Needs review
FileSize
1.55 KB
yannickoo’s picture

yannickoo’s picture

Assigned: Unassigned » yannickoo
Status: Needs review » Needs work
yannickoo’s picture

Assigned: yannickoo » Unassigned
Status: Needs work » Needs review
FileSize
1.6 KB
yannickoo’s picture

Paulmicha’s picture

I've just successfully tested this patch against 7.x-1.6 (in case anyone else was wondering if that patch from nov.2014 was still working).

Arlina’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
1.67 KB

Tested patch and updated to work against current 7.x-1.8.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 7: inline_entity_form-pass_render_arguments-2375895-7.patch, failed testing.

deanflory’s picture

Patch "inline_entity_form-pass_render_arguments-2375895-5.patch" FAILs to apply to the latest 1.8 release and the patch in #7 fails tests.

jwineichen’s picture

I think this feature would be great.

icurk’s picture

Here is an updated patch that works with 7.x-1.9.