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
|
@@ 182-190 (lines=9) @@
|
| 179 |
|
* @return string|false |
| 180 |
|
* @throws ProviderNotFound |
| 181 |
|
*/ |
| 182 |
|
public function getVideoId() { |
| 183 |
|
if (! empty($this->URL) && $this->Type != 'File') { |
| 184 |
|
$videoId = BlocksUtility::parse_video_id($this->URL, $this->Type); |
| 185 |
|
|
| 186 |
|
return $videoId; |
| 187 |
|
} |
| 188 |
|
|
| 189 |
|
return false; |
| 190 |
|
} |
| 191 |
|
|
| 192 |
|
/** |
| 193 |
|
* Get embed link by the set of Type field. Method depends by |