function UrlHelperTest::providerTestEncodePath
Provides data for self::testEncodePath().
Return value
array
File
- 
              core/
tests/ Drupal/ Tests/ Component/ Utility/ UrlHelperTest.php, line 375  
Class
- UrlHelperTest
 - @group Utility
 
Namespace
Drupal\Tests\Component\UtilityCode
public static function providerTestEncodePath() {
  return [
    [
      'unencoded path with spaces',
      'unencoded%20path%20with%20spaces',
    ],
    [
      'slashes/should/be/preserved',
      'slashes/should/be/preserved',
    ],
  ];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.