function EntityRevisionParamConverterTest::getTestRoute

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/ParamConverter/EntityRevisionParamConverterTest.php \Drupal\Tests\Core\ParamConverter\EntityRevisionParamConverterTest::getTestRoute()
  2. 10 core/tests/Drupal/Tests/Core/ParamConverter/EntityRevisionParamConverterTest.php \Drupal\Tests\Core\ParamConverter\EntityRevisionParamConverterTest::getTestRoute()
  3. 9 core/tests/Drupal/Tests/Core/ParamConverter/EntityRevisionParamConverterTest.php \Drupal\Tests\Core\ParamConverter\EntityRevisionParamConverterTest::getTestRoute()
  4. 8.9.x 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
Tests applying route.

File

core/tests/Drupal/Tests/Core/ParamConverter/EntityRevisionParamConverterTest.php, line 45

Class

EntityRevisionParamConverterTest
Tests Drupal\Core\ParamConverter\EntityRevisionParamConverter.

Namespace

Drupal\Tests\Core\ParamConverter

Code

protected function getTestRoute() : Route {
  $route = new Route('/test/{test_revision}');
  $route->setOption('parameters', [
    'test_revision' => [
      'type' => 'entity_revision:test',
    ],
  ]);
  return $route;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.