The module uses t function and drupal_set_message in its codebase which have been deprecated, they need to be removed and replaced with new apis and functions.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | interdiff_8-10.txt | 1.39 KB | lilit_ghazaryan |
| #10 | gdpr_onetrust-remove_and_replace_deprecated_code-3099651-10.patch | 7.47 KB | lilit_ghazaryan |
| #8 | interdiff_5-8.txt | 2.61 KB | rahulrasgon |
| #8 | gdpr_onetrust-removed_and_replaced_deprecated_code-3099651-8.patch | 5.94 KB | rahulrasgon |
Comments
Comment #2
rahulrasgon commentedComment #3
rahulrasgon commentedPatch uploaded, please review.
Thanks
Comment #4
hardik_patel_12 commentedComment #5
hardik_patel_12 commented@rahulrasgon replaced logger factory with messenger service for drupal_set_message
Comment #6
hardik_patel_12 commentedComment #7
rahulrasgon commentedComment #8
rahulrasgon commentedRefactored the code. here's a fixed patch and interdiff.
Comment #9
hardik_patel_12 commentedThanks for the fixes @rahulrasgon. I have tested patch and it is working fine.
Comment #10
lilit_ghazaryan commented9/9 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ------------------------------------------------------------------
Line modules/onetrust_cookie_blocking/onetrust_cookie_blocking.module
------ ------------------------------------------------------------------
95 Call to deprecated function file_default_scheme():
in drupal:8.8.0 and is removed from drupal:9.0.0. Use
\Drupal::config('system.file')->get('default_scheme') instead.
99 Call to deprecated function file_default_scheme():
in drupal:8.8.0 and is removed from drupal:9.0.0. Use
\Drupal::config('system.file')->get('default_scheme') instead.
------ ------------------------------------------------------------------
[ERROR] Found 2 errors
updated patch and no errors
9/9 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
[OK] No errors
Comment #11
aliaksandr_rozum commentedHi @Lilit_Ghazaryan!
Your patch is fine.
Comment #12
gobinathmCommited in 2.x
https://git.drupalcode.org/project/gdpr_onetrust/commit/048658b