Fold drupal_get_updaters() into Updater class, deprecate drupal_get_updaters()

Created on 27 February 2019, almost 6 years ago
Updated 8 May 2023, over 1 year ago

Problem/Motivation

🌱 [META] Remove all usages of drupal_static() & drupal_static_reset() Active wants us to get rid of drupal_static().

#3015538: [META] Deprecate contents of common.inc β†’ wants us to deprecate functions in common.inc.

Thus here we feet two birds with one seed.

Proposed resolution

Move the functionality of drupal_get_updaters() into a static method on Drupal\Core\Updater\Updater. Let's call it getUpdaterRegistry().

Instead of using drupal_static() to cache in memory, we'll add a static property to Drupal\Core\Updater\Updater.

Deprecate drupal_get_updaters() in favor of Updater::getUpdaterRegistry().

Remaining tasks

  • Feedback from #25

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Needs review

Version

10.1 ✨

Component
BaseΒ  β†’

Last updated about 12 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States mile23 Seattle, WA

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024