As part of #2061107: Remove deprecated procedural functions in Field API, to get a clearer view of the current status & content of field.module
- moves all deprecated functions to a field.deprecated.inc file. #2042165: Add a 'deprecated' module that includes deprecated functions only when enabled mentions introducing this pattern more generally, possibly along with an automatic switch to load *deprecated files or not. Since all the functions involved here are currently unconditionally loaded anyway, I'd rather do the move now to facilitate the current cleanup work without waiting for that other issue.
- moves hook_entity_bundle_*() implementations out of field.crud.inc to the main module file
- renames field.crud.inc to field.purge.inc, since that is all there's left in there
- moves field_language_fallback() from field.module to field.multilingual.inc
Patch coming up after I get a node id.
Comment | File | Size | Author |
---|---|---|---|
#11 | field-reorganize_files-2067127-11.patch | 94.75 KB | yched |
#9 | field-reorganize_files-2067127-9.patch | 66.21 KB | yched |
#7 | field-reorganize_files-2067127-7.patch | 94.86 KB | yched |
#5 | field-reorganize_files-2067127-5.patch | 97.32 KB | yched |
#5 | interdiff.txt | 2.01 KB | yched |
Comments
Comment #1
yched CreditAttribution: yched commentedPatch
Comment #2
yched CreditAttribution: yched commentedComment #3
yched CreditAttribution: yched commented& tag...
Comment #5
yched CreditAttribution: yched commented- Missing "use" statement
- _field_sort_items_value_helper() belongs to field.form.inc
Comment #6
amateescu CreditAttribution: amateescu commentedThis looks unrelated :)
Comment #7
yched CreditAttribution: yched commentedOops, indeed. Wrong merge in my local branch I guess...
Comment #8
amateescu CreditAttribution: amateescu commentedThe patch is impossible to follow but assuming it does what it says in the issue summary, I think it's a good cleanup step.
Comment #9
yched CreditAttribution: yched commentedRerolled after #1847002: Move entity type classes from Drupal\$provider\Plugin\Core\Entity to Drupal\$provider\Entity
Comment #11
yched CreditAttribution: yched commentedYeah, sorry, left one conflict unresolved.
Comment #12
alexpottSo I've reviewed this using a script to compare functions across two git checkouts - which I'll try and share sometime - there is no functional change here.
Committed 375a708 and pushed to 8.x. Thanks!
Comment #13
yched CreditAttribution: yched commented@alexpott: thanks! - and +1 to sharing that script on gist :-)
Comment #14.0
(not verified) CreditAttribution: commentedMention #2042165: Add a 'deprecated' module that includes deprecated functions only when enabled