LanguageAddForm in language module still uses old D7-url() method.

It should be $this->url() or \Drupal::url().

Submitted the patch for the same.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, old-url-method.patch, failed testing.

joshi.rohit100’s picture

Status: Needs work » Needs review

I investigated the testcase failure and found that, in testcases, block module is not enabled. So it dont find the specified route.
Once I added the 'block' module in the public static $modules and again tested, found that test run smoothly without any failure. So, I think, it is some test case related problem.

dawehner’s picture

It is cool that this conversion allowed us to find bugs. I think you need to check whether the module exists and otherwise
not send something out in this case.

amitgoyal’s picture

I believe we have started using "!" over "@" for links. Please see if it makes sense to use the updated patch for the same.

Status: Needs review » Needs work

The last submitted patch, 4: old-url-method-2293785-4.patch, failed testing.

joshi.rohit100’s picture

Status: Needs work » Needs review
FileSize
1.25 KB
1.17 KB

Updated patch with check condition as per #3

Status: Needs review » Needs work

The last submitted patch, 6: old-url-method-2293785-6.patch, failed testing.

mgifford’s picture

Version: 8.0.x-dev » 8.1.x-dev
Assigned: joshi.rohit100 » Unassigned

This still a concern in D8? Unassigned issue too.

swentel’s picture

Status: Needs work » Closed (fixed)

Call is fine now, it's using $this->url()