Line src/Form/StoreLocatorForm.php
------ ----------------------------------------------------------------------
116 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.
122 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/Helper/LocationDataHelper.php
------ --------------------------------------------------------------------------
26 Call to deprecated method entityManager() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal::entityTypeManager() instead in most cases. If the needed
method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the
deprecated \Drupal\Core\Entity\EntityManager to find the
correct interface or service.
36 Call to deprecated method entityManager() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal::entityTypeManager() instead in most cases. If the needed
method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the
deprecated \Drupal\Core\Entity\EntityManager to find the
correct interface or service.
78 Call to deprecated method entityManager() of class Drupal:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal::entityTypeManager() instead in most cases. If the needed
method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the
deprecated \Drupal\Core\Entity\EntityManager to find the
correct interface or service.
------ --------------------------------------------------------------------------

------ -------------------------------------------------------------------------------------------------------------------------
Line src/StoreLocatorListBuilder.php
------ -------------------------------------------------------------------------------------------------------------------------
17 Usage of deprecated trait Drupal\Core\Routing\LinkGeneratorTrait in class Drupal\store_locator\StoreLocatorListBuilder:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
35 Call to deprecated method l() of class Drupal\store_locator\StoreLocatorListBuilder:
in Drupal 8.0.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Core\Link instead.
------ -------------------------------------------------------------------------------------------------------------------------

Comments

Kushal Bansal created an issue. See original summary.

kushal bansal’s picture

Status: Active » Needs review
StatusFileSize
new3.63 KB

patch added

q__nt_n’s picture

Hi !
I'm already working on it, but what you did will help me.
Thanks for this patch, I will check it this week.

q__nt_n’s picture

Assigned: kushal bansal » q__nt_n
q__nt_n’s picture

With your patch, I still have some errors to get a Drupal 9 code ready. I used vijaycs85/drupal/quality-checker and mglaman/drupal-check
In attachment, new patch with interdiff.

q__nt_n’s picture

StatusFileSize
new12.23 KB

I fixed last patch

  • q__nt_n committed 8b1d572 on 8.x-1.x
    Issue #3077023 by q__nt_n, Kushal Bansal: Drupal 9 Deprecated Code...
q__nt_n’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

kristen pol’s picture

Issue tags: -Drupal 9 Deprecated Code Report +Drupal 9 compatibility

Per a Slack discussion with Gábor Hojtsy regarding usage of D9 tags (Drupal 9, Drupal 9 compatibility, Drupal 9 readiness, etc.), "Drupal 9 compatibility" should be used for contributed projects that need updating and "Drupal 9" was the old tag for D8 issues before the D9 branch was ready. Doing tag cleanup here based on that discussion.