You are here

public function ProviderPluginInterface::getRemoteThumbnailUrl in Video Embed Field 8

Same name and namespace in other branches
  1. 8.2 src/ProviderPluginInterface.php \Drupal\video_embed_field\ProviderPluginInterface::getRemoteThumbnailUrl()

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 value

string The URL to the remote thumbnail file.

1 call to ProviderPluginInterface::getRemoteThumbnailUrl()
ProviderPluginBase::downloadThumbnail in src/ProviderPluginBase.php
Download the remote thumbnail URL to the local thumbnail URI.
4 methods override ProviderPluginInterface::getRemoteThumbnailUrl()
MockProvider::getRemoteThumbnailUrl in tests/modules/video_embed_field_mock_provider/src/Plugin/video_embed_field/Provider/MockProvider.php
Get the URL of the remote thumbnail.
Vimeo::getRemoteThumbnailUrl in src/Plugin/video_embed_field/Provider/Vimeo.php
Get the URL of the remote thumbnail.
YouTube::getRemoteThumbnailUrl in src/Plugin/video_embed_field/Provider/YouTube.php
Get the URL of the remote thumbnail.
YouTubePlaylist::getRemoteThumbnailUrl in src/Plugin/video_embed_field/Provider/YouTubePlaylist.php
Get the URL of the remote thumbnail.

File

src/ProviderPluginInterface.php, line 47

Class

ProviderPluginInterface
Providers an interface for embed providers.

Namespace

Drupal\video_embed_field

Code

public function getRemoteThumbnailUrl();