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
Comment | File | Size | Author |
---|---|---|---|
#7 | svg_icon-3082723-7.patch | 1.51 KB | joy29 |
Comments
Comment #2
joy29 CreditAttribution: joy29 at Srijan | A Material+ Company commenteddeprecated method removed
Comment #3
joy29 CreditAttribution: joy29 at Srijan | A Material+ Company commentedComment #4
larowlanAccording to the docs on File::url, this should use
\Drupal\file\Entity\File::createFileUrl
insteadComment #5
joy29 CreditAttribution: joy29 at Srijan | A Material+ Company commentedComment #6
joy29 CreditAttribution: joy29 at Srijan | A Material+ Company commentedthanks, @larowlan, the patch is updated.
Comment #7
joy29 CreditAttribution: joy29 at Srijan | A Material+ Company commentedthis is my updated patch.
Comment #8
larowlanComment #10
larowlanThanks, fixed!