function ResourceFetcherTest::providerFetchResource
Data provider for testFetchResource().
Return value
array
File
- 
              core/
modules/ media/ tests/ src/ Functional/ ResourceFetcherTest.php, line 38  
Class
- ResourceFetcherTest
 - Tests the oEmbed resource fetcher service.
 
Namespace
Drupal\Tests\media\FunctionalCode
public function providerFetchResource() {
  return [
    'JSON resource' => [
      'video_vimeo.json',
      'Vimeo',
      'Drupal Rap Video - Schipulcon09',
    ],
    'XML resource' => [
      'video_collegehumor.xml',
      'CollegeHumor',
      "Let's Not Get a Drink Sometime",
    ],
  ];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.