public function ParamConverterManagerTest::providerTestSetRouteParameterConverters in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/ParamConverter/ParamConverterManagerTest.php \Drupal\Tests\Core\ParamConverter\ParamConverterManagerTest::providerTestSetRouteParameterConverters()
Provides data for testSetRouteParameterConverters().
File
- core/
tests/ Drupal/ Tests/ Core/ ParamConverter/ ParamConverterManagerTest.php, line 160
Class
- ParamConverterManagerTest
- @coversDefaultClass \Drupal\Core\ParamConverter\ParamConverterManager @group ParamConverter
Namespace
Drupal\Tests\Core\ParamConverterCode
public function providerTestSetRouteParameterConverters() {
return [
[
'/test',
],
[
'/test/{id}',
[
'id' => [],
],
'applied',
],
[
'/test/{id}',
[
'id' => [
'converter' => 'predefined',
],
],
'predefined',
],
];
}