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
module_invoke call in libraries.module is outdated and cause fatal errors.
Proposed resolution
Replace with \Drupal::moduleHandler()->invoke()
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#1 | replace_module_invoke-2427801-1.patch | 663 bytes | Anushka-mp |
Comments
Comment #1
Anushka-mp CreditAttribution: Anushka-mp commentedComment #3
Anushka-mp CreditAttribution: Anushka-mp commentedThe test failures are existing ones.
Comment #4
BerdirWould be nice to get this in, the remaining test failures are only related to _drupal_add_js/css, and fixing this makes it work again at least for our use case, which is jwplayer, see #2425153: Add test coverage.
Comment #6
tstoecklerThanks a lot!
Committed this. I did a minor modification to save
$module_handler
in a variable.