function UrlResolverTest::providerUrlDiscovery
Same name in other branches
- 9 core/modules/media/tests/src/Functional/UrlResolverTest.php \Drupal\Tests\media\Functional\UrlResolverTest::providerUrlDiscovery()
- 8.9.x core/modules/media/tests/src/Functional/UrlResolverTest.php \Drupal\Tests\media\Functional\UrlResolverTest::providerUrlDiscovery()
- 11.x core/modules/media/tests/src/Functional/UrlResolverTest.php \Drupal\Tests\media\Functional\UrlResolverTest::providerUrlDiscovery()
Data provider for testUrlDiscovery().
Return value
array
See also
::testUrlDiscovery()
File
-
core/
modules/ media/ tests/ src/ Functional/ UrlResolverTest.php, line 106
Class
- UrlResolverTest
- Tests the oEmbed URL resolver service.
Namespace
Drupal\Tests\media\FunctionalCode
public static function providerUrlDiscovery() {
return [
'JSON resource' => [
'video_vimeo.html',
'https://vimeo.com/api/oembed.json?url=video_vimeo.html',
],
'XML resource' => [
'video_dailymotion.html',
'https://www.dailymotion.com/services/oembed?url=video_dailymotion.html',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.