Method call is provided 2 parameters, but the method signature uses 1 parameters

AccessManager.php
$route = $this->routeProvider->getRouteByName($route_name, $parameters);

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Nathaniel created an issue. See original summary.

Nathaniel’s picture

Status: Active » Needs review
FileSize
769 bytes

Status: Needs review » Needs work

The last submitted patch, 2: accessmanager_getroutebyname-3102980-2.patch, failed testing. View results

Hardik_Patel_12’s picture

Kindly review a new patch

Status: Needs review » Needs work

The last submitted patch, 4: accessmanager_getrouteby_name-3102980-4.patch, failed testing. View results

Nathaniel’s picture

Hardik_Patel_12’s picture

Thank you @Nathaniel. Above patch works fine.

Hardik_Patel_12’s picture

Status: Needs review » Reviewed & tested by the community

  • catch committed a7f702a on 9.0.x
    Issue #3102980 by Nathaniel, Hardik_Patel_12: AccessManager...

  • catch committed fc0b41d on 8.9.x
    Issue #3102980 by Nathaniel, Hardik_Patel_12: AccessManager...
catch’s picture

Status: Reviewed & tested by the community » Fixed

The documentation is actually wrong for that method, opened #3110104: Incorrect documentation for RouteProvider::getRouteByName().

Committed a7f702a and pushed to 9.0.x and 8.9.x. Thanks!

Status: Fixed » Closed (fixed)

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