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

Comments

rajeevgole created an issue. See original summary.

gnanagowthaman sankar’s picture

Hi @rajeevgole,

Here by i attached the patch. Please review and let me know for changes.

Thanks & Regards,
Gnanagowthaman sankar

gnanagowthaman sankar’s picture

Status: Active » Needs review
StatusFileSize
new3.43 KB

Patch

Thanks & Regards,
Gnanagowthaman sankar

sabina.h’s picture

StatusFileSize
new6.42 KB

Tested 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.

alejomc’s picture

#4 patch does not apply for me over `4.0-alpha4`, created this one.

suraj_vantagode’s picture

Pushed to the latest release.

suraj_vantagode’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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