function UrlHelperTest::providerTestInvalidAbsolute

Provides data for testInvalidAbsolute().

Return value

array An array of invalid absolute URLs.

File

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

Class

UrlHelperTest
Tests Drupal\Component\Utility\UrlHelper.

Namespace

Drupal\Tests\Component\Utility

Code

public static function providerTestInvalidAbsolute() : array {
  $data = [
    '',
    'ex!ample.com',
    'ex%ample.com',
  ];
  return self::dataEnhanceWithScheme($data);
}

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