media_test_oembed.module

Same filename in other branches
  1. 9 core/modules/media/tests/modules/media_test_oembed/media_test_oembed.module
  2. 10 core/modules/media/tests/modules/media_test_oembed/media_test_oembed.module
  3. 11.x core/modules/media/tests/modules/media_test_oembed/media_test_oembed.module

Helper module for the Media oEmbed tests.

File

core/modules/media/tests/modules/media_test_oembed/media_test_oembed.module

View source
<?php


/**
 * @file
 * Helper module for the Media oEmbed tests.
 */
use Drupal\media\OEmbed\Provider;

/**
 * Implements hook_oembed_resource_url_alter().
 */
function media_test_oembed_oembed_resource_url_alter(array &$parsed_url, Provider $provider) {
    if ($provider->getName() === 'Vimeo') {
        $parsed_url['query']['altered'] = 1;
    }
}

Functions

Title Deprecated Summary
media_test_oembed_oembed_resource_url_alter Implements hook_oembed_resource_url_alter().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.