function RouteMatchTestBase::getRouteMatch
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php \Drupal\Tests\Core\Routing\RouteMatchTestBase::getRouteMatch()
- 8.9.x core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php \Drupal\Tests\Core\Routing\RouteMatchTestBase::getRouteMatch()
- 10 core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php \Drupal\Tests\Core\Routing\RouteMatchTestBase::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
1 call to RouteMatchTestBase::getRouteMatch()
- RouteMatchTestBase::routeMatchProvider in core/
tests/ Drupal/ Tests/ Core/ Routing/ RouteMatchTestBase.php - Provide sets of parameters and expected parameters for parameter tests.
2 methods override RouteMatchTestBase::getRouteMatch()
- CurrentRouteMatchTest::getRouteMatch in core/
tests/ Drupal/ Tests/ Core/ Routing/ CurrentRouteMatchTest.php - Build a test route match object for the given implementation.
- RouteMatchTest::getRouteMatch in core/
tests/ Drupal/ Tests/ Core/ Routing/ RouteMatchTest.php - Build a test route match object for the given implementation.
File
-
core/
tests/ Drupal/ Tests/ Core/ Routing/ RouteMatchTestBase.php, line 32
Class
- RouteMatchTestBase
- Base test class for testing classes implementing the route match interface.
Namespace
Drupal\Tests\Core\RoutingCode
protected static abstract function getRouteMatch(string $name, Route $route, array $parameters, array $raw_parameters) : RouteMatchInterface;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.