Hi,
The results of checking Drupal 9 compatibility
6/6 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ----------------------------------------------------------------------
Line dropguard.install
------ ----------------------------------------------------------------------
53 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------
------ -----------------------------------------------------------------------------
Line dropguard.module
------ -----------------------------------------------------------------------------
48 Call to deprecated function system_rebuild_module_data():
in drupal:8.8.0 and is removed from drupal:9.0.0.
Use \Drupal::service('extension.list.module')->getList() instead.
Note: use reset() only when you really need to rescan and rebuild the list.
60 Call to deprecated function drupal_get_profile():
in drupal:8.3.0 and is removed from drupal:9.0.0.
Use the install_profile container parameter or \Drupal::installProfile()
instead. If you are accessing the value before it is written to
configuration during the installer use the $install_state global. If you
need to access the value before container is available you can use
BootstrapConfigStorageFactory to load the value directly from
configuration.
189 Call to deprecated function drupal_get_profile():
in drupal:8.3.0 and is removed from drupal:9.0.0.
Use the install_profile container parameter or \Drupal::installProfile()
instead. If you are accessing the value before it is written to
configuration during the installer use the $install_state global. If you
need to access the value before container is available you can use
BootstrapConfigStorageFactory to load the value directly from
configuration.
------ -----------------------------------------------------------------------------
------ -------------------------------------------------------------------------------------------------------
Line src/Tests/SettingsFormTest.php
------ -------------------------------------------------------------------------------------------------------
17 Class Drupal\dropguard\Tests\SettingsFormTest extends deprecated class Drupal\simpletest\WebTestBase:
in drupal:8.8.0 and is removed from drupal:9.0.0. Instead,
use \Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340.
35 Call to method setUp() of deprecated class Drupal\simpletest\WebTestBase:
in drupal:8.8.0 and is removed from drupal:9.0.0. Instead,
use \Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340.
------ -------------------------------------------------------------------------------------------------------
[ERROR] Found 6 errors
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | dropguard-deprecations-3112161-5.patch | 3.08 KB | sutharsan |
| #5 | interdiff-3112161-2-5.txt | 537 bytes | sutharsan |
| #2 | dropguard-deprecations-3112161-2-D8.patch | 2.71 KB | e.bogatyrev |
Comments
Comment #2
e.bogatyrevHi there,
Please find and test the patch.
Scan results after patch applying.
------------------------------------------------------------
6/6 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
[OK] No errors
------------------------------------------------------------
Thanks
Comment #3
e.bogatyrevComment #4
sutharsan commentedReviewing...
Comment #5
sutharsan commentedUpgrade Status result after this patch