Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / media / src / Plugin / media / Source / OEmbedInterface.php
diff --git a/web/core/modules/media/src/Plugin/media/Source/OEmbedInterface.php b/web/core/modules/media/src/Plugin/media/Source/OEmbedInterface.php
new file mode 100644 (file)
index 0000000..90d73e5
--- /dev/null
@@ -0,0 +1,23 @@
+<?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();
+
+}