function RouteMatchTest::getRouteMatch
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Routing/RouteMatchTest.php \Drupal\Tests\Core\Routing\RouteMatchTest::getRouteMatch()
- 10 core/tests/Drupal/Tests/Core/Routing/RouteMatchTest.php \Drupal\Tests\Core\Routing\RouteMatchTest::getRouteMatch()
- 9 core/tests/Drupal/Tests/Core/Routing/RouteMatchTest.php \Drupal\Tests\Core\Routing\RouteMatchTest::getRouteMatch()
- 8.9.x core/tests/Drupal/Tests/Core/Routing/RouteMatchTest.php \Drupal\Tests\Core\Routing\RouteMatchTest::getRouteMatch()
Build a test route match object for the given implementation.
Parameters
string $name: Route name.
\Symfony\Component\Routing\Route $route: Request object.
array $parameters: Parameters array.
array $raw_parameters: Raw parameters array.
Return value
\Drupal\Core\Routing\RouteMatchInterface The constructed route match instance.
Overrides RouteMatchTestBase::getRouteMatch
File
-
core/
tests/ Drupal/ Tests/ Core/ Routing/ RouteMatchTest.php, line 26
Class
Namespace
Drupal\Tests\Core\RoutingCode
protected static function getRouteMatch(string $name, Route $route, array $parameters, array $raw_parameters) : RouteMatchInterface {
return new RouteMatch($name, $route, $parameters, $raw_parameters);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.