class MediaTestOembedHooks
Hook implementations for media_test_oembed.
Hierarchy
- class \Drupal\media_test_oembed\Hook\MediaTestOembedHooks
Expanded class hierarchy of MediaTestOembedHooks
File
-
core/
modules/ media/ tests/ modules/ media_test_oembed/ src/ Hook/ MediaTestOembedHooks.php, line 13
Namespace
Drupal\media_test_oembed\HookView source
class MediaTestOembedHooks {
/**
* Implements hook_oembed_resource_url_alter().
*/
public function oembedResourceUrlAlter(array &$parsed_url, Provider $provider) : void {
if ($provider->getName() === 'Vimeo') {
$parsed_url['query']['altered'] = 1;
}
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
MediaTestOembedHooks::oembedResourceUrlAlter | public | function | Implements hook_oembed_resource_url_alter(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.