You are here

public function VideoFilterBase::preview in Video Filter 8

Get video preview image.

This video will be used in CKEditor.

Overrides VideoFilterInterface::preview

File

src/VideoFilterBase.php, line 113

Class

VideoFilterBase
Defines base methods for all video filter plugin instances.

Namespace

Drupal\video_filter

Code

public function preview($video) {

  // Returns absolute URL to preview image.
  return drupal_get_path('module', 'video_filter') . '/assets/preview.png';
}