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() ?
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | edit_field_valid_language-2155665-3.patch | 3.96 KB | wim leers |
Comments
Comment #1
yched commentedbeta target, since this is blocking #2067079: Remove the Field Language API
Comment #2
wim leersOn it.
Comment #3
wim leersEt voilà.
Very happy to be able to delete that ugly hack in
EditEntityFieldAccessCheckTest:)Comment #4
wim leersComment #5
yched commentedDélicieux :-) Merci @Wim !
Comment #6
gábor hojtsyYay, thanks, looks good for me too :)
Comment #7
webchickCommitted and pushed to 8.x. Thanks!
Comment #8
wim leers