@@ 296-304 (lines=9) @@ | ||
293 | * |
|
294 | * @return string |
|
295 | */ |
|
296 | public function getAudioPreview(array $mainTagOptions): string |
|
297 | { |
|
298 | return Html::audio($this->getViewUrl(), ArrayHelper::merge([ |
|
299 | 'source' => [ |
|
300 | 'type' => $this->type |
|
301 | ] |
|
302 | ], $mainTagOptions) |
|
303 | ); |
|
304 | } |
|
305 | ||
306 | /** |
|
307 | * Get video preview. |
|
@@ 313-321 (lines=9) @@ | ||
310 | * |
|
311 | * @return string |
|
312 | */ |
|
313 | public function getVideoPreview(array $mainTagOptions): string |
|
314 | { |
|
315 | return Html::video($this->getViewUrl(), ArrayHelper::merge([ |
|
316 | 'source' => [ |
|
317 | 'type' => $this->type |
|
318 | ] |
|
319 | ], $mainTagOptions) |
|
320 | ); |
|
321 | } |
|
322 | ||
323 | /** |
|
324 | * Get application preview. |