Problem/Motivation
This Url::fromRoute() also creates a $route_name variable: https://git.drupalcode.org/project/admin_toolbar/-/blob/28a6dfd1fb1652be...
But this variable is never used.
Steps to reproduce
Proposed resolution
Stop creating the variable and simply call Url::fromRoute() with the route name.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork admin_toolbar-3590488
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
garvitasakhrani commentedI am working on it.
Comment #4
garvitasakhrani commentedRemoved the unused variable from SearchLinks.php.
Please review the changes. Thankyou.
Comment #5
angel_devoeted commentedTested and reviewed the changes locally.
The diff is clean, the syntax check passes, and it correctly removes the unused inline
$route_nameassignment while leaving the rest of the file intact.Looks good!
Comment #6
dydave commentedThanks a lot everyone!
Great catch!
Indeed ... The MR looks good ...
Just need a tiny bit of time to be able to merge all this.
I'll try coming back to this issue as soon as I can find a bit of time.
Thanks again!