You are here

ProviderPluginInterface.php in Video 8

Same filename and directory in other branches
  1. 8.2 src/ProviderPluginInterface.php

Namespace

Drupal\video

File

src/ProviderPluginInterface.php
View source
<?php

namespace Drupal\video;


/**
 * Providers an interface for embed providers.
 */
interface ProviderPluginInterface {

  /**
   * Render embed code.
   *
   * @param string $settings
   *   The settings of the video player.
   *
   * @return mixed
   *   A renderable array of the embed code.
   */
  public function renderEmbedCode($settings);

  /**
   * Get the URL of the remote thumbnail.
   *
   * This is used to download the remote thumbnail and place it on the local
   * file system so that it can be rendered with image styles. This is only
   * called if no existing file is found for the thumbnail and should not be
   * called unnecessarily, as it might query APIs for video thumbnail
   * information.
   *
   * @return string
   *   The URL to the remote thumbnail file.
   */
  public function getRemoteThumbnailUrl();

}

Interfaces

Namesort descending Description
ProviderPluginInterface Providers an interface for embed providers.