IMPR: VideoFile
This commit is contained in:
parent
9487516e6a
commit
ce01c06af4
|
@ -73,3 +73,7 @@ SilverStripe\Assets\File:
|
||||||
- LeKoala\FilePond\FilePondFileExtension
|
- LeKoala\FilePond\FilePondFileExtension
|
||||||
LeKoala\FilePond\FilePondField:
|
LeKoala\FilePond\FilePondField:
|
||||||
enable_auto_thumbnails: true
|
enable_auto_thumbnails: true
|
||||||
|
|
||||||
|
Dynamic\Elements\Oembed\Elements\ElementOembed:
|
||||||
|
extensions:
|
||||||
|
- A2nt\ElementalBasics\Extensions\ElementOembedEx
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace A2nt\ElementalBasics\Extensions;
|
||||||
|
|
||||||
|
use SilverStripe\Assets\File;
|
||||||
|
use SilverStripe\ORM\DataExtension;
|
||||||
|
|
||||||
|
class ElementOembedEx extends DataExtension
|
||||||
|
{
|
||||||
|
private static $has_one = [
|
||||||
|
'VideoFile' => File::class,
|
||||||
|
];
|
||||||
|
|
||||||
|
private static $owns = [
|
||||||
|
'VideoFile',
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in New Issue