[pp-1] Mark several more modules as converted

Created on 19 December 2024, 2 months ago

Problem/Motivation

Postponed: https://www.drupal.org/project/drupal/issues/3491275 πŸ“Œ Mark core modules as converted to OOP hooks Active
Follow-up from ✨ Explore ways to mark hook conversion status per module or file Active . Let's mark all the modules.

Would be great to do a before/after comparison of drush install to see if/how much memory and potentially time we save.

Steps to reproduce

N/A

Proposed resolution

Bugfixes

  • Add fix to HookCollectorPass, can't change the $dir variable
  • Update DI tests to not expect services key

Add container parameter for modules fully converted
Add Attribute for ones using procedural only
Move procedural hooks to top of files
Convert unconverted hooks

  • block_themes_installed
  • media_library_form_views_form_media_library_page_alter

If there is not already a services file create it

Do not add the attribute to jsonapi.module because there are no functions.
If a module has no .inc or .module files do nothing. E.G. page_cache
If a module only has procedural functions that need to be scanned do nothing E.G. package_manager

Do we need to ignore module.post_update.php

Remaining tasks

Follow ups:

  • field partially ignored
  • locale
  • update
  • node_mass_update
  • test modules (likely not worth doing)

πŸ“Œ Update tests calling theme suggestions through moduleHandler. Active

User interface changes

N/A

Introduced terminology

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

base system

Created by

πŸ‡ΊπŸ‡ΈUnited States nicxvan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024