Replaced \Drupal::url with Url::fromRoute.

Comments

chaitanya17 created an issue. See original summary.

chaitanya17’s picture

Status: Active » Needs review
StatusFileSize
new1.1 KB

Please check attached working patch

Status: Needs review » Needs work

The last submitted patch, 2: patch-2794313.patch, failed testing.

The last submitted patch, 2: patch-2794313.patch, failed testing.

chaitanya17’s picture

Status: Needs work » Needs review

I have tested patch on working project functionality is working properly after applying the patch.

mglaman’s picture

Status: Needs review » Needs work

chaitanya17, please do not hijack statuses. The testing reports an error, rectify the error before marking for review.

mglaman’s picture

Error at hand:

13:47:39 PHP Fatal error:  Cannot use Drupal\Core\Url as Url because the name is already in use in modules/profile/src/Form/DeleteMultiple.php on line 12
mglaman’s picture

Status: Needs work » Needs review
StatusFileSize
new723 bytes

Here is a corrected patch.

  • mglaman committed 2136769 on 8.x-1.x
    Issue #2794313 by mglaman: \Drupal::url is deprecated
    
mglaman’s picture

Status: Needs review » Fixed

Fixed.

Status: Fixed » Closed (fixed)

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