3 namespace Drupal\video_embed_field_mock_provider\Plugin\video_embed_field\Provider;
5 use Drupal\video_embed_field\ProviderPluginInterface;
8 * A mock video provider for use in tests.
10 * @VideoEmbedProvider(
12 * title = @Translation("Mock Provider")
15 class MockProvider implements ProviderPluginInterface {
20 public static function isApplicable($input) {
21 return strpos($input, 'example.com') !== FALSE;
27 public function renderThumbnail($image_style, $link_url) {
29 '#markup' => 'Mock provider thumbnail.',
36 public function renderEmbedCode($width, $height, $autoplay) {
38 '#markup' => 'Mock provider embed code.',
45 public function getRemoteThumbnailUrl() {
52 public function getLocalThumbnailUri() {
59 public function downloadThumbnail() {
66 public static function getIdFromInput($input) {
73 public function getName() {
80 public function getPluginId() {
87 public function getPluginDefinition() {