Problem/Motivation

EntityInterface::url() is deprecated in Drupal 8.0.0 and will be removed in Drupal 9.0.0. EntityInterface::toUrl() instead.

Proposed resolution

Replace call to deprecated method url() of class Drupal\Core\Entity\EntityInterface with EntityInterface::toUrl()

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

Comments

idebr created an issue. See original summary.

lobsterr’s picture

Status: Active » Needs review
StatusFileSize
new2.01 KB

Status: Needs review » Needs work

The last submitted patch, 2: depricated_url_method-3043759-2.patch, failed testing. View results

lobsterr’s picture

Status: Needs work » Needs review
StatusFileSize
new2.06 KB
idebr’s picture

Status: Needs review » Reviewed & tested by the community

kristiaanvandeneynde’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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

kristen pol’s picture

Issue tags: +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.