Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Part of #3012523: Convert the update.inc file functions to a class
The update_check_incompatibility()
function is not used in core
The only usage in contrib is drush 6 http://grep.xnddx.ru/search?text=update_check_incompatibility
Proposed resolution
Deprecate function without replacement, the alternative implementation is \Drupal\Core\Extension\ExtensionList::checkIncompatibility()
per each extension type
Remaining tasks
- deprecate
- review/commit
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#4 | 3150726-4.patch | 2.04 KB | andypost |
#4 | interdiff.txt | 614 bytes | andypost |
Comments
Comment #2
andypostPatch to see that no usage exists
Comment #3
andypostFiled CR and here deprecation with test
Comment #4
andypostCR should be updated with reference to
\Drupal\Core\Extension\ExtensionList::checkIncompatibility()
as extensions lists encapsulated this checkComment #6
naresh_bavaskar+1 RTBC,
yeah
update_check_incompatibility()
is not used anywhere in Drupal core.Comment #7
naresh_bavaskarComment #8
alexpottThe last usage in core was removed in #2917600: update_fix_compatibility() puts sites into unrecoverable state. That issue just missed out on deprecating this method.
Committed 0334414 and pushed to 9.1.x. Thanks!