function ParamConverterManagerTest::providerTestSetRouteParameterConverters

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/ParamConverter/ParamConverterManagerTest.php \Drupal\Tests\Core\ParamConverter\ParamConverterManagerTest::providerTestSetRouteParameterConverters()
  2. 8.9.x core/tests/Drupal/Tests/Core/ParamConverter/ParamConverterManagerTest.php \Drupal\Tests\Core\ParamConverter\ParamConverterManagerTest::providerTestSetRouteParameterConverters()
  3. 11.x 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 162

Class

ParamConverterManagerTest
@coversDefaultClass \Drupal\Core\ParamConverter\ParamConverterManager[[api-linebreak]] @group ParamConverter

Namespace

Drupal\Tests\Core\ParamConverter

Code

public static function providerTestSetRouteParameterConverters() {
  return [
    [
      '/test',
    ],
    [
      '/test/{id}',
      [
        'id' => [],
      ],
      'applied',
    ],
    [
      '/test/{id}',
      [
        'id' => [
          'converter' => 'predefined',
        ],
      ],
      'predefined',
    ],
  ];
}

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