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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yched’s picture

yched’s picture

Status: Active » Needs review
yched’s picture

Issue tags: +Field API

& tag...

Status: Needs review » Needs work

The last submitted patch, field-reorganize_files-2067127-1.patch, failed testing.

yched’s picture

Status: Needs work » Needs review
FileSize
2.01 KB
97.32 KB

- Missing "use" statement
- _field_sort_items_value_helper() belongs to field.form.inc

amateescu’s picture

+++ b/core/core.services.yml
@@ -171,7 +171,7 @@ services:
-    arguments: ['@container.namespaces', '@controller_resolver', '@request', '@module_handler', '@cache.cache', '@language_manager']
+    arguments: ['@container.namespaces', '@controller_resolver', '@request', '@module_handler']

index c99dd83..f4aab24 100644
--- a/core/lib/Drupal/Core/Menu/LocalActionManager.php

--- a/core/lib/Drupal/Core/Menu/LocalActionManager.php
+++ b/core/lib/Drupal/Core/Menu/LocalActionManager.php

This looks unrelated :)

yched’s picture

Oops, indeed. Wrong merge in my local branch I guess...

amateescu’s picture

Status: Needs review » Reviewed & tested by the community

The patch is impossible to follow but assuming it does what it says in the issue summary, I think it's a good cleanup step.

yched’s picture

Status: Reviewed & tested by the community » Needs work

The last submitted patch, field-reorganize_files-2067127-9.patch, failed testing.

yched’s picture

Status: Needs work » Reviewed & tested by the community
FileSize
94.75 KB

Yeah, sorry, left one conflict unresolved.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

So 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!

yched’s picture

@alexpott: thanks! - and +1 to sharing that script on gist :-)

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

Anonymous’s picture