See discussion in #2023571: Support preprocessing in EntityViewBuilder, the function is useless with the new render and Entity Field API.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir’s picture

Status: Active » Needs review
FileSize
6.07 KB

Here is the patch.

yched’s picture

Status: Needs review » Reviewed & tested by the community

Yup, RTBC if green. Thanks !

Berdir’s picture

Status: Needs review » Reviewed & tested by the community

#2 set this to RTBC, why did the issue not update?

xjm’s picture

yched’s picture

Patch #1 passed, should be styled green...
Requested a re-test.

xjm’s picture

Priority: Normal » Major
Issue tags: +API change, +beta blocker, +DX (Developer Experience)

I believe this is a beta blocker as a part of #2061107: Remove deprecated procedural functions in Field API. Bumping to major accordingly (and possibly it should be critical in the sense that it should block a beta release, but we don't entirely have consensus on that rule-of-thumb). We've made an explicit decision to remove the procedural cruft in the configurable field API because it has a pretty severe DX impact.

Also, this API change is presumably implicitly approved as a part of the overall issue. Let's have a core maintainer confirm to be sure. :)

chx’s picture

Something is wrong, the patch is not finishing a test run even after repeated attempts. I SSH'd into the bot in question and there's nothing in the Apache error logs.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 1: remove-field-attach-preprocess-2157153-1.patch, failed testing.

chx’s picture

I would definitely try to install Drupal and run one or two related tests and observe. There is maybe a leftover call at a very awkward time?

yched’s picture

Status: Needs work » Needs review
FileSize
6.05 KB

Reroll, re-upload.

Berdir’s picture

Status: Needs review » Reviewed & tested by the community

Testbot is happy again.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Ok, committed and pushed to 8.x. This can probably just be rolled into the change notice for #2061107: Remove deprecated procedural functions in Field API.

xjm’s picture

Title: Remove field_attach_preprocess() » Change record: Remove field_attach_preprocess()
Status: Fixed » Active
Issue tags: +Needs change record

Agreed that it can go in the same change record, but we also need to reference both issues. :)

yched’s picture

The change notices for #2061107: Remove deprecated procedural functions in Field API were added toi the existing notices for the respective APIs.

Created a separate change notice for this one : https://drupal.org/node/2168285

xjm’s picture

Title: Change record: Remove field_attach_preprocess() » Remove field_attach_preprocess()
Status: Active » Fixed
Issue tags: -Needs change record

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.