You are here

public function GodTube::iframe in Video Filter 8

HTML5 video (iframe).

Overrides VideoFilterBase::iframe

File

src/Plugin/VideoFilter/GodTube.php, line 26

Class

GodTube
Provides GodTube codec for Video Filter.

Namespace

Drupal\video_filter\Plugin\VideoFilter

Code

public function iframe($video) {
  return [
    'src' => '//www.godtube.com/embed/watch/' . $video['codec']['matches'][1],
  ];
}