I have used drupal-check and found this error
Line src/Form/AddLocation.php
------ -------------------------------------------------------------------------
86 Call to deprecated function db_insert():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call insert() on it. For example,
97 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ -------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line src/Form/EditLocation.php
------ -------------------------------------------------------------------------
41 Call to deprecated function db_select():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
101 Call to deprecated function db_update():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call update() on it. For example,
113 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ -------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line src/Form/GoogleMapList.php
------ -------------------------------------------------------------------------
38 Call to deprecated function db_select():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
------ -------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line src/Form/MapLocationDelete.php
------ -------------------------------------------------------------------------
38 Call to deprecated function db_select():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call select() on it. For example,
79 Call to deprecated function db_delete():
as of Drupal 8.0.x, will be removed in Drupal 9.0.0. Instead, get
a database connection injected into your service from the container and
call delete() on it. For example,
82 Call to deprecated function drupal_set_message():
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ -------------------------------------------------------------------------
[ERROR] Found 9 errors
patch for change after finding with drupal check
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | drupal-9-compatible.patch | 8.64 KB | priyanshucs0094 |
Comments
Comment #2
priyanshucs0094 commentedComment #3
priyanshucs0094 commentedComment #5
b n pandey commentedWe have removed all deprecated code in new release.