function UnroutedUrlAssemblerTest::providerTestAssembleWithLocalUri
Return value
array
File
- 
              core/tests/ Drupal/ Tests/ Core/ Utility/ UnroutedUrlAssemblerTest.php, line 125 
Class
- UnroutedUrlAssemblerTest
- @coversDefaultClass \Drupal\Core\Utility\UnroutedUrlAssembler[[api-linebreak]] @group Utility
Namespace
Drupal\Tests\Core\UtilityCode
public static function providerTestAssembleWithLocalUri() {
  return [
    [
      'base:example',
      [],
      FALSE,
      '/example',
    ],
    [
      'base:example',
      [
        'query' => [
          'foo' => 'bar',
        ],
      ],
      FALSE,
      '/example?foo=bar',
    ],
    [
      'base:example',
      [
        'query' => [
          'foo' => '"bar"',
        ],
      ],
      FALSE,
      '/example?foo=%22bar%22',
    ],
    [
      'base:example',
      [
        'query' => [
          'foo' => '"bar"',
          'zoo' => 'baz',
        ],
      ],
      FALSE,
      '/example?foo=%22bar%22&zoo=baz',
    ],
    [
      'base:example',
      [
        'fragment' => 'example',
      ],
      FALSE,
      '/example#example',
    ],
    [
      'base:example',
      [],
      TRUE,
      '/subdir/example',
    ],
    [
      'base:example',
      [
        'query' => [
          'foo' => 'bar',
        ],
      ],
      TRUE,
      '/subdir/example?foo=bar',
    ],
    [
      'base:example',
      [
        'fragment' => 'example',
      ],
      TRUE,
      '/subdir/example#example',
    ],
    [
      'base:/drupal.org',
      [],
      FALSE,
      '/drupal.org',
    ],
  ];
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
