You are here

public function MockProvider::renderThumbnail in Video Embed Field 8.2

Same name and namespace in other branches
  1. 8 tests/modules/video_embed_field_mock_provider/src/Plugin/video_embed_field/Provider/MockProvider.php \Drupal\video_embed_field_mock_provider\Plugin\video_embed_field\Provider\MockProvider::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.

Overrides ProviderPluginInterface::renderThumbnail

File

tests/modules/video_embed_field_mock_provider/src/Plugin/video_embed_field/Provider/MockProvider.php, line 27

Class

MockProvider
A mock video provider for use in tests.

Namespace

Drupal\video_embed_field_mock_provider\Plugin\video_embed_field\Provider

Code

public function renderThumbnail($image_style, $link_url) {
  return [
    '#markup' => 'Mock provider thumbnail.',
  ];
}