protected function EntityRevisionParamConverterTest::getTestRoute in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/ParamConverter/EntityRevisionParamConverterTest.php \Drupal\Tests\Core\ParamConverter\EntityRevisionParamConverterTest::getTestRoute()
- 9 core/tests/Drupal/Tests/Core/ParamConverter/EntityRevisionParamConverterTest.php \Drupal\Tests\Core\ParamConverter\EntityRevisionParamConverterTest::getTestRoute()
1 call to EntityRevisionParamConverterTest::getTestRoute()
- EntityRevisionParamConverterTest::testApplyingRoute in core/
tests/ Drupal/ Tests/ Core/ ParamConverter/ EntityRevisionParamConverterTest.php - @covers ::applies
File
- core/
tests/ Drupal/ Tests/ Core/ ParamConverter/ EntityRevisionParamConverterTest.php, line 39
Class
- EntityRevisionParamConverterTest
- @coversDefaultClass \Drupal\Core\ParamConverter\EntityRevisionParamConverter @group entity
Namespace
Drupal\Tests\Core\ParamConverterCode
protected function getTestRoute() {
$route = new Route('/test/{test_revision}');
$route
->setOption('parameters', [
'test_revision' => [
'type' => 'entity_revision:test',
],
]);
return $route;
}