6/6 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

------ -------------------------------------------------------------------
Line src/Plugin/Field/FieldFormatter/SvgIconFormatter.php
------ -------------------------------------------------------------------
92 Call to deprecated method url() of class Drupal\file\Entity\File:
in Drupal 8.0.0, intended to be removed in Drupal 9.0.0
Please use toUrl() instead.
------ -------------------------------------------------------------------

------ -------------------------------------------------------------------
Line src/Plugin/Field/FieldWidget/SvgIconWidget.php
------ -------------------------------------------------------------------
171 Call to deprecated method url() of class Drupal\file\Entity\File:
in Drupal 8.0.0, intended to be removed in Drupal 9.0.0
Please use toUrl() instead.
------ -------------------------------------------------------------------

[ERROR] Found 2 errors

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joy29 created an issue. See original summary.

joy29’s picture

FileSize
1.52 KB

deprecated method removed

joy29’s picture

Assigned: joy29 » Unassigned
Status: Active » Needs review
larowlan’s picture

Status: Needs review » Needs work

According to the docs on File::url, this should use \Drupal\file\Entity\File::createFileUrl instead

joy29’s picture

Assigned: Unassigned » joy29
joy29’s picture

Status: Needs work » Needs review
FileSize
1.73 KB

thanks, @larowlan, the patch is updated.

joy29’s picture

FileSize
1.51 KB

this is my updated patch.

larowlan’s picture

Category: Bug report » Task

  • larowlan committed 1907571 on 8.x-1.x authored by joy29
    Issue #3082723 by joy29: Drupal 9 Deprecated Code Report
    
larowlan’s picture

Status: Needs review » Fixed

Thanks, fixed!

Status: Fixed » Closed (fixed)

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