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
drupal-check results on commit hash: e9b3b4de22140de73b96093d0f19629aa930d9fe
------ ------------------------------------------------
Line image_url_formatter.module
------ ------------------------------------------------
66 Call to deprecated method l() of class Drupal.
------ ------------------------------------------------
------ ----------------------------------------------------------------------------------
Line src/Plugin/Field/FieldFormatter/ImageUrlFormatter.php
------ ----------------------------------------------------------------------------------
221 Call to deprecated method urlInfo() of class Drupal\Core\Entity\EntityInterface.
------ ----------------------------------------------------------------------------------
[ERROR] Found 2 errors
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#5 | interdiff_3_5.diff | 1.36 KB | nikolas.tatianenko |
#5 | drupal_9_deprecated_code-3042736-5.patch | 7.72 KB | nikolas.tatianenko |
#3 | drupal_9_deprecated_code-3042736-3.patch | 6.89 KB | Sergiu Stici |
Comments
Comment #2
Sergiu Stici CreditAttribution: Sergiu Stici at FFW commented..
Comment #3
Sergiu Stici CreditAttribution: Sergiu Stici at FFW commentedHere is the patch, please review.
Comment #4
Dinesh18 CreditAttribution: Dinesh18 at Singapore Press Holdings commentedManually reviewed the patch and it covers the two errors which are mentioned in the descriptions.
Along with uses a short syntax array which is really good.
+1 to RTBC
Comment #5
nikolas.tatianenko CreditAttribution: nikolas.tatianenko at EPAM Systems commentedChecking with latest Drupal 9-rc1 and rector
Rector 0.8.x-dev@8896f0a
Config file: rector.yml
6/6 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
[OK] Rector is done!
Comment #6
nikolas.tatianenko CreditAttribution: nikolas.tatianenko at EPAM Systems commentedChecking with latest Drupal 9-rc1 and rector
Rector 0.8.x-dev@8896f0a
Config file: rector.yml
6/6 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
[OK] Rector is done!
Comment #7
alexandra.vecher CreditAttribution: alexandra.vecher at EPAM Systems commentedI'v checked.
Rector 0.8.x-dev@3465583
Config file: rector.yml
6/6 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
[OK] Rector is done!
Comment #9
g089h515r806 CreditAttribution: g089h515r806 commented