Following issues needs to be done to make it drupal 9 ready
------ ---------------------------------------------------------------------
Line login_history.module
------ ---------------------------------------------------------------------
35 Call to deprecated function db_insert():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container
and
call insert() on it. For example,
63 Call to deprecated function db_query():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead,
get a database connection injected into your service from the
container
and call query() on it. For example,
------ ---------------------------------------------------------------------
------ ---------------------------------------------------------------------
Line src/Controller/LoginHistoryController.php
------ ---------------------------------------------------------------------
61 Call to deprecated function db_select():
in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get
a database connection injected into your service from the container
and
call select() on it. For example,
107 Call to deprecated method getUsername() of class
Drupal\user\Entity\User:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Session\AccountInterface::getAccountName() or
\Drupal\user\UserInterface::getDisplayName() instead.
------ ---------------------------------------------------------------------
Comment | File | Size | Author |
---|---|---|---|
#16 | 3138851_16.patch | 2.21 KB | ridhimaabrol24 |
| |||
#14 | 3138851_14.patch | 2.6 KB | ridhimaabrol24 |
| |||
#11 | 3138851_10.patch | 2.24 KB | shimpy |
| |||
#9 | 3138851_9.patch | 2.24 KB | shimpy |
| |||
#8 | 3138851_8.patch | 2.24 KB | shimpy |
Comments
Comment #2
saurabh-2k17 CreditAttribution: saurabh-2k17 at Srijan | A Material+ Company for Drupal India Association commentedI think this patch will make it ready for D9.
Thanks
Comment #3
saurabh-2k17 CreditAttribution: saurabh-2k17 at Srijan | A Material+ Company for Drupal India Association commentedComment #5
saurabh-2k17 CreditAttribution: saurabh-2k17 at Srijan | A Material+ Company for Drupal India Association commentedUpdated the patch as last one failed
Comment #6
saurabh-2k17 CreditAttribution: saurabh-2k17 at Srijan | A Material+ Company for Drupal India Association commentedComment #8
shimpyAttaching Patch for deprecated functions
Comment #9
shimpyIgnore patch #8
Comment #11
shimpyComment #13
ridhimaabrol24 CreditAttribution: ridhimaabrol24 at Srijan | A Material+ Company for Drupal India Association commentedComment #14
ridhimaabrol24 CreditAttribution: ridhimaabrol24 at Srijan | A Material+ Company for Drupal India Association commentedFixing the failed test.
Comment #16
ridhimaabrol24 CreditAttribution: ridhimaabrol24 at Srijan | A Material+ Company for Drupal India Association commentedComment #17
gregglesThere's an existing issue at #3042861: Drupal 9 Deprecated Code Report for Login History module to upgrade the module. Perhaps interested folks could help with that?