OEmbedInterface.php

Same filename in other branches
  1. 8.9.x core/modules/media/src/Plugin/media/Source/OEmbedInterface.php
  2. 10 core/modules/media/src/Plugin/media/Source/OEmbedInterface.php
  3. 11.x core/modules/media/src/Plugin/media/Source/OEmbedInterface.php

Namespace

Drupal\media\Plugin\media\Source

File

core/modules/media/src/Plugin/media/Source/OEmbedInterface.php

View source
<?php

namespace Drupal\media\Plugin\media\Source;

use Drupal\media\MediaSourceFieldConstraintsInterface;

/**
 * Defines additional functionality for source plugins that use oEmbed.
 */
interface OEmbedInterface extends MediaSourceFieldConstraintsInterface {
    
    /**
     * Returns the oEmbed provider names.
     *
     * The allowed providers can be configured by the user. If it is not
     * configured, all providers supported by the plugin are returned.
     *
     * @return string[]
     *   A list of oEmbed provider names.
     */
    public function getProviders();

}

Interfaces

Title Deprecated Summary
OEmbedInterface Defines additional functionality for source plugins that use oEmbed.

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