function UrlTest::providerUrlFromRequestWithQueryParameters

Same name and namespace in other branches
  1. main core/tests/Drupal/Tests/Core/UrlTest.php \Drupal\Tests\Core\UrlTest::providerUrlFromRequestWithQueryParameters()

Data provider for testUrlFromRequestWithQueryParameters.

File

core/tests/Drupal/Tests/Core/UrlTest.php, line 179

Class

UrlTest
Tests Drupal\Core\Url.

Namespace

Drupal\Tests\Core

Code

public static function providerUrlFromRequestWithQueryParameters() : iterable {
  yield [
    [
      'foo' => 'bar',
    ],
  ];
  yield [
    [
      'foo' => 'bar',
      'bar' => 'baz',
    ],
  ];
  yield [
    [
      'foo' => [
        'bar',
        'baz',
      ],
    ],
  ];
  yield [
    [],
  ];
}

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