code/blocks/slider/models/VideoSliderItem.php 1 location
|
@@ 231-239 (lines=9) @@
|
228 |
|
* @return string|false |
229 |
|
* @throws ProviderNotFound |
230 |
|
*/ |
231 |
|
public function getVideoId() { |
232 |
|
if (! empty($this->URL) && $this->Type != 'File') { |
233 |
|
$videoId = BlocksUtility::parse_video_id($this->URL, $this->Type); |
234 |
|
|
235 |
|
return $videoId; |
236 |
|
} |
237 |
|
|
238 |
|
return false; |
239 |
|
} |
240 |
|
|
241 |
|
/** |
242 |
|
* Get embed link by the set of Type field. Method depends by |
code/blocks/video/models/VideoBlock.php 1 location
|
@@ 183-191 (lines=9) @@
|
180 |
|
* @return string|false |
181 |
|
* @throws ProviderNotFound |
182 |
|
*/ |
183 |
|
public function getVideoId() { |
184 |
|
if (! empty($this->URL) && $this->Type != 'File') { |
185 |
|
$videoId = BlocksUtility::parse_video_id($this->URL, $this->Type); |
186 |
|
|
187 |
|
return $videoId; |
188 |
|
} |
189 |
|
|
190 |
|
return false; |
191 |
|
} |
192 |
|
|
193 |
|
/** |
194 |
|
* Get embed link by the set of Type field. Method depends by |