FoxNews.php in Video Filter 8
File
src/Plugin/VideoFilter/FoxNews.php
View source
<?php
namespace Drupal\video_filter\Plugin\VideoFilter;
use Drupal\video_filter\VideoFilterBase;
class FoxNews extends VideoFilterBase {
public function html($video) {
$video_id = $video['codec']['matches'][1];
$html = '<script type="text/javascript" src="http://video.foxnews.com/v/embed.js?id=' . $video_id . '&w=' . $video['width'] . '&h=' . $video['height'] . '"></script>';
return $html;
}
}
Classes
Name |
Description |
FoxNews |
Provides FoxNews codec for Video Filter. |