You are here

public function ProviderPluginBase::getLocalThumbnailUri in Video Embed Field 8

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

Get the URL to the local thumbnail.

This method does not gartunee that the file will exist, only that it will be the location of the thumbnail after the download thumbnail method has been called.

Return value

string The URI for the local thumbnail.

Overrides ProviderPluginInterface::getLocalThumbnailUri

2 calls to ProviderPluginBase::getLocalThumbnailUri()
ProviderPluginBase::downloadThumbnail in src/ProviderPluginBase.php
Download the remote thumbnail URL to the local thumbnail URI.
ProviderPluginBase::renderThumbnail in src/ProviderPluginBase.php
Render a thumbnail.

File

src/ProviderPluginBase.php, line 157

Class

ProviderPluginBase
A base for the provider plugins.

Namespace

Drupal\video_embed_field

Code

public function getLocalThumbnailUri() {
  return $this->thumbsDirectory . '/' . $this
    ->getVideoId() . '.jpg';
}