function media_test_oembed_oembed_resource_url_alter
Same name in other branches
- 9 core/modules/media/tests/modules/media_test_oembed/media_test_oembed.module \media_test_oembed_oembed_resource_url_alter()
- 10 core/modules/media/tests/modules/media_test_oembed/media_test_oembed.module \media_test_oembed_oembed_resource_url_alter()
- 11.x core/modules/media/tests/modules/media_test_oembed/media_test_oembed.module \media_test_oembed_oembed_resource_url_alter()
Implements hook_oembed_resource_url_alter().
File
-
core/
modules/ media/ tests/ modules/ media_test_oembed/ media_test_oembed.module, line 13
Code
function media_test_oembed_oembed_resource_url_alter(array &$parsed_url, Provider $provider) {
if ($provider->getName() === 'Vimeo') {
$parsed_url['query']['altered'] = 1;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.