diff --git a/web/modules/custom/joinup_video/src/Plugin/video_embed_field/Provider/InternalPath.php b/web/modules/custom/joinup_video/src/Plugin/video_embed_field/Provider/InternalPath.php index 97e8b01c3afb0b9221767f296104da0a1ba70cac..e42aaa80d337dce23ec62872bee738d47baf7b7e 100644 --- a/web/modules/custom/joinup_video/src/Plugin/video_embed_field/Provider/InternalPath.php +++ b/web/modules/custom/joinup_video/src/Plugin/video_embed_field/Provider/InternalPath.php @@ -22,14 +22,14 @@ class InternalPath extends ProviderPluginBase { * {@inheritdoc} */ public function renderEmbedCode($width, $height, $autoplay) { - $video_path = $this->getVideoId(); - if (UrlHelper::isExternal($video_path) || !file_exists($video_path)) { + $path = $this->getVideoId(); + if (UrlHelper::isExternal($path)) { return []; } return [ '#type' => 'video_embed_iframe', '#provider' => 'internal_path', - '#url' => Url::fromUri("internal:/$video_path") + '#url' => Url::fromUri("internal:/$path") ->setOption('base_url', $GLOBALS['base_url']) ->setAbsolute() ->toString(),