function MediaTestOembedHooks::oembedResourceUrlAlter

Implements hook_oembed_resource_url_alter().

File

core/modules/media/tests/modules/media_test_oembed/src/Hook/MediaTestOembedHooks.php, line 18

Class

MediaTestOembedHooks
Hook implementations for media_test_oembed.

Namespace

Drupal\media_test_oembed\Hook

Code

public function oembedResourceUrlAlter(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.