You are here

interface OEmbedInterface in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/media/src/Plugin/media/Source/OEmbedInterface.php \Drupal\media\Plugin\media\Source\OEmbedInterface
  2. 10 core/modules/media/src/Plugin/media/Source/OEmbedInterface.php \Drupal\media\Plugin\media\Source\OEmbedInterface

Defines additional functionality for source plugins that use oEmbed.

Hierarchy

Expanded class hierarchy of OEmbedInterface

All classes that implement OEmbedInterface

6 files declare their use of OEmbedInterface
media.install in core/modules/media/media.install
Install, uninstall and update hooks for Media module.
media.module in core/modules/media/media.module
Provides media items.
OEmbedForm.php in core/modules/media_library/src/Form/OEmbedForm.php
OEmbedFormatter.php in core/modules/media/src/Plugin/Field/FieldFormatter/OEmbedFormatter.php
OEmbedResourceConstraintValidator.php in core/modules/media/src/Plugin/Validation/Constraint/OEmbedResourceConstraintValidator.php

... See full list

File

core/modules/media/src/Plugin/media/Source/OEmbedInterface.php, line 10

Namespace

Drupal\media\Plugin\media\Source
View source
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();

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigurableInterface::defaultConfiguration public function Gets default configuration for this plugin. 11
ConfigurableInterface::getConfiguration public function Gets this plugin's configuration. 12
ConfigurableInterface::setConfiguration public function Sets the configuration for this plugin instance. 12
DependentPluginInterface::calculateDependencies public function Calculates dependencies for the configured plugin. 19
MediaSourceFieldConstraintsInterface::getSourceFieldConstraints public function Gets media source-specific validation constraints for a source field. 2
MediaSourceInterface::createSourceField public function Creates the source field definition for a type. 1
MediaSourceInterface::getMetadata public function Gets the value for a metadata attribute for a given media item. 1
MediaSourceInterface::getMetadataAttributes public function Gets a list of metadata attributes provided by this plugin. 3
MediaSourceInterface::getSourceFieldDefinition public function Get the source field definition for a media type. 1
MediaSourceInterface::getSourceFieldValue public function Get the primary value stored in the source field. 1
MediaSourceInterface::METADATA_FIELD_EMPTY constant Default empty value for metadata fields.
MediaSourceInterface::prepareFormDisplay public function Prepares the media type fields for this source in the form display. 1
MediaSourceInterface::prepareViewDisplay public function Prepares the media type fields for this source in the view display. 1
OEmbedInterface::getProviders public function Returns the oEmbed provider names. 1
PluginFormInterface::buildConfigurationForm public function Form constructor. 36
PluginFormInterface::submitConfigurationForm public function Form submission handler. 32
PluginFormInterface::validateConfigurationForm public function Form validation handler. 18
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2