class MediaTestOembedHooks

Hook implementations for media_test_oembed.

Hierarchy

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\Hook
View source
class MediaTestOembedHooks {
    
    /**
     * Implements hook_oembed_resource_url_alter().
     */
    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.