Drupal/edit/EditController, Drupal/edit/Access/EditEntityFieldAccessCheck still rely on field_valid_language().
That function is now totally obsolete, and all the "old Field multilingual API" needs to be removed in #2067079: Remove the Field Language API.

The logic in edit.module should move to the new Entity API logic - probably $entity->hasTranslation() ?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yched’s picture

Issue tags: +beta target, +EntityField API

beta target, since this is blocking #2067079: Remove the Field Language API

Wim Leers’s picture

Title: Update field_valid_language() calls in Edit.module » Update field_valid_language() calls in edit.module
Assigned: Unassigned » Wim Leers
Issue tags: +Spark, +sprint

On it.

Wim Leers’s picture

Status: Active » Needs review
Related issues: +#2067079: Remove the Field Language API
FileSize
3.96 KB

Et voilà.

Very happy to be able to delete that ugly hack in EditEntityFieldAccessCheckTest :)

Wim Leers’s picture

yched’s picture

Status: Needs review » Reviewed & tested by the community

Délicieux :-) Merci @Wim !

Gábor Hojtsy’s picture

Issue tags: +D8MI, +language-content

Yay, thanks, looks good for me too :)

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

Wim Leers’s picture

Issue tags: -sprint

Status: Fixed » Closed (fixed)

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