You are here

public function ProviderPluginInterface::renderThumbnail in Video Embed Field 8

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

Render a thumbnail.

Parameters

string $image_style: The quality of the thumbnail to render.

string $link_url: Where the thumbnail should be linked to.

Return value

array A renderable array of a thumbnail.

2 methods override ProviderPluginInterface::renderThumbnail()
MockProvider::renderThumbnail in tests/modules/video_embed_field_mock_provider/src/Plugin/video_embed_field/Provider/MockProvider.php
Render a thumbnail.
ProviderPluginBase::renderThumbnail in src/ProviderPluginBase.php
Render a thumbnail.

File

src/ProviderPluginInterface.php, line 33

Class

ProviderPluginInterface
Providers an interface for embed providers.

Namespace

Drupal\video_embed_field

Code

public function renderThumbnail($image_style, $link_url);