function ResourceFetcherTest::providerFetchResource
Same name in other branches
- 9 core/modules/media/tests/src/Functional/ResourceFetcherTest.php \Drupal\Tests\media\Functional\ResourceFetcherTest::providerFetchResource()
- 8.9.x core/modules/media/tests/src/Functional/ResourceFetcherTest.php \Drupal\Tests\media\Functional\ResourceFetcherTest::providerFetchResource()
- 11.x core/modules/media/tests/src/Functional/ResourceFetcherTest.php \Drupal\Tests\media\Functional\ResourceFetcherTest::providerFetchResource()
Data provider for testFetchResource().
Return value
array
File
-
core/
modules/ media/ tests/ src/ Functional/ ResourceFetcherTest.php, line 42
Class
- ResourceFetcherTest
- Tests the oEmbed resource fetcher service.
Namespace
Drupal\Tests\media\FunctionalCode
public static function providerFetchResource() {
return [
'JSON resource' => [
'video_vimeo.json',
'Vimeo',
'Drupal Rap Video - Schipulcon09',
],
'XML resource' => [
'video_dailymotion.xml',
'Dailymotion',
"#d8rules - Support the Rules module for Drupal 8",
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.