3 namespace Drupal\embed\EmbedType;
5 use Drupal\Component\Plugin\PluginInspectionInterface;
6 use Drupal\Component\Plugin\ConfigurablePluginInterface;
7 use Drupal\Core\Plugin\PluginFormInterface;
10 * Provides an interface for an embed type and its metadata.
14 interface EmbedTypeInterface extends ConfigurablePluginInterface, PluginFormInterface, PluginInspectionInterface {
17 * Gets a configuration value.
20 * The name of the plugin configuration value.
21 * @param mixed $default
22 * The default value to return if the configuration value does not exist.
25 * The currently set configuration value, or the value of $default if the
26 * configuration value is not set.
28 public function getConfigurationValue($name, $default = NULL);
31 * Sets a configuration value.
34 * The name of the plugin configuration value.
38 public function setConfigurationValue($name, $value);
41 * Gets the default icon URL for the embed type.
44 * The URL to the default icon. Must have been passed through
45 * file_create_url() if the file is local.
47 * @see file_create_url()
49 public function getDefaultIconUrl();