Problem/Motivation
There are a few deprecated methods shown when checking with "drupal-check" utility:
------ --------------------------------------------------------------------------
Line skip_temp_file_warnings.module
------ --------------------------------------------------------------------------
17 Call to deprecated method entityManager() of class Drupal:
in drupal:8.0.0 and is removed from 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.
47 Call to deprecated function db_or():
in drupal:8.0.0 and is removed from drupal:9.0.0. Create
a \Drupal\Core\Database\Query\Condition object, specifying an OR
conjunction: new Condition('OR');
80 Call to deprecated method url() of class Drupal:
in drupal:8.0.0 and is removed from drupal:9.0.0.
Instead create a \Drupal\Core\Url object directly, for example using
Url::fromRoute().
------ --------------------------------------------------------------------------
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | drupal_9_deprecated_code_report-3103849-5.patch | 4.9 KB | alejomc |
| #4 | 3103849-4.patch | 6.42 KB | sabina.h |
| #3 | drupal_9_deprecated_code_report-3103849-2.patch | 3.43 KB | gnanagowthaman sankar |
Comments
Comment #2
gnanagowthaman sankar commentedHi @rajeevgole,
Here by i attached the patch. Please review and let me know for changes.
Thanks & Regards,
Gnanagowthaman sankar
Comment #3
gnanagowthaman sankar commentedPatch
Thanks & Regards,
Gnanagowthaman sankar
Comment #4
sabina.h commentedTested the patch from #3, works fine for mine, but there were still some compatibility warnings. So I have updated the patch from #3 to fix those. Needs review.
Comment #5
alejomc commented#4 patch does not apply for me over `4.0-alpha4`, created this one.
Comment #8
suraj_vantagode commentedPushed to the latest release.
Comment #9
suraj_vantagode commented