interface OEmbedInterface
Same name and namespace in other branches
- 11.x 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
- interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Component\Plugin\DependentPluginInterface; interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Core\Plugin\PluginFormInterface
- interface \Drupal\media\MediaSourceInterface implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\ConfigurableInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Core\Plugin\PluginFormInterface
- interface \Drupal\media\MediaSourceFieldConstraintsInterface implements \Drupal\media\MediaSourceInterface
- interface \Drupal\media\Plugin\media\Source\OEmbedInterface implements \Drupal\media\MediaSourceFieldConstraintsInterface
- interface \Drupal\media\MediaSourceFieldConstraintsInterface implements \Drupal\media\MediaSourceInterface
- interface \Drupal\media\MediaSourceInterface implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\ConfigurableInterface, \Drupal\Component\Plugin\DependentPluginInterface, \Drupal\Core\Plugin\PluginFormInterface
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
File
-
core/
modules/ media/ src/ Plugin/ media/ Source/ OEmbedInterface.php, line 10
Namespace
Drupal\media\Plugin\media\SourceView 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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.