Drupal 9 still has a bunch of legacies includes files. See the previous meta #2999721: [META] Deprecate the legacy include files before Drupal 9

Here is the tracking of the deprecation status of the legacy include files in the core modules and core/includes directory:

Includes files

Bootstrap

Kernel includes

Install includes

Rest of the files

Modules

Comments

voleger created an issue. See original summary.

voleger’s picture

Issue summary: View changes

Remove already closed issue

voleger’s picture

xjm’s picture

I'm not sure this should be a child of the D10 meta. We will not block the release of Drupal 10 or change its schedule based on whether or not this is done.

xjm’s picture

Also, many of these issues should be retitled. The objective of the issue isn't to deprecate something -- it's to provide a modern replacement. So the title (and IS) of each should describe the replacement that's being proposed (new service, whatever).

voleger’s picture

Definitely this issue have not be a child of D10 meta. But this things is nice to have. We have great initiative in modernizing Batch API with a Batch service, also thing like #3038513: Move drupal_generate_test_ua() into the test system which is blocking us to easily replace TestKernel with DrupalKernel, and so on...
Thanks for advise regarding re-titling.

gábor hojtsy’s picture

Title: [META] Deprecate the legacy include files before Drupal 10 » [META] Provide modern replacements for and deprecate the legacy include files before Drupal 10
Parent issue: #3118143: [meta] Release Drupal 10 on December 14... or 15... 2022 »

Retitled, removed parent.

voleger’s picture

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

andypost’s picture

Landed #3151118: Include bootstrap.inc using composer

So related issues may need re-roll

andypost’s picture

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

sutharsan’s picture

Locale contains a bunch on include files and plenty of procedural code that deserves an OO upgrade too. Not sure whether use this a meta, or create a child meta dedicated to modernizing Locale module. But let me start by summarizing what I found so far:

Include files

OO-ify issues

Other locale improvement issues

gábor hojtsy’s picture

@Sutharsan: probably locale module is the biggest offender of all that is left in terms of random global functions and twisted include files. I had a big role in it ending it up that way, so I can hopefully use the strong words :D IMHO a separate META issue would be best, since it is otherwise pretty well contained and does not have many side effects other than the installer integration.

andypost’s picture

++ to separate meta for locale, I'm willing to help modernize it

sutharsan’s picture

@Gábor, that makes two that played a big role ;) But on the positive side, I can be part of the solution too. Andpost, you offer is gladly accepted, I know my way around this (complex) code, but I should not do it alone.
I will make the issue later today.

sutharsan’s picture

andypost’s picture

schema.inc finished

voleger’s picture

Issue summary: View changes
voleger’s picture

Issue summary: View changes
tr’s picture

voleger’s picture

Issue summary: View changes
andypost’s picture

menu.inc is done and should be removed in d10

daffie’s picture

Issue summary: View changes

file.inc is done!

daffie’s picture

Issue summary: View changes

file.inc not yet completely done, we still have the function file_build_uri() to deprecate.

andypost’s picture

Issue summary: View changes

Added new issue to summary for #26 #3223016: Deprecate file_build_uri()

andypost’s picture

Issue summary: View changes

sorter IS a bit also there's FILE_STATUS_PERMANENT

andypost’s picture

andypost’s picture

One more deprecated done #3223016: Deprecate file_build_uri()

daffie’s picture

Issue summary: View changes

file.inc is done!

andypost’s picture

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

voleger’s picture

voleger’s picture

voleger’s picture

Issue tags: +LutskGCW22
xjm’s picture

Title: [META] Provide modern replacements for and deprecate the legacy include files before Drupal 10 » [META] Provide modern replacements for and deprecate the legacy include files b

I'm removing the "before Drupal 10" in the issue title. If some of them don't get deprecated before D10, then we make the additions in D10 and deprecate the old APIs for D11 instead. :)

daffie’s picture

Title: [META] Provide modern replacements for and deprecate the legacy include files b » [META] Provide modern replacements for and deprecate the legacy include files

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

andypost’s picture

andypost’s picture

andypost’s picture

kim.pepper’s picture

Issue summary: View changes

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

andypost’s picture

nicxvan’s picture

Glad I found this! I've been pondering working on some of this too!

nicxvan’s picture

Issue summary: View changes
nicxvan’s picture

Issue summary: View changes
nicxvan’s picture

nicxvan’s picture

Making good progress on theme.inc, down to 5 functions!

nicxvan’s picture

Issue summary: View changes

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.