function UrlHelperTest::providerTestValidRelativeData

Provides data for testValidRelative().

Return value

array An array of valid relative URLs.

File

core/tests/Drupal/Tests/Component/Utility/UrlHelperTest.php, line 169

Class

UrlHelperTest
Tests Drupal\Component\Utility\UrlHelper.

Namespace

Drupal\Tests\Component\Utility

Code

public static function providerTestValidRelativeData() : array {
  $data = [
    'paren(the)sis',
    'index.html#page-top',
    'index.php/node',
    'index.php/node?param=false',
    'login.php?do=login&style=%23#page-top',
  ];
  return self::dataEnhanceWithPrefix($data);
}

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