function RouteMatchTest::getRouteMatch
Same name and namespace in other branches
- 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()
- 11.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
Overrides RouteMatchTestBase::getRouteMatch
File
-
core/
tests/ Drupal/ Tests/ Core/ Routing/ RouteMatchTest.php, line 23
Class
- RouteMatchTest
- @coversDefaultClass \Drupal\Core\Routing\RouteMatch @group Routing
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.