mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 17:05:54 +02:00
IMPR: VideoFile
This commit is contained in:
parent
9487516e6a
commit
ce01c06af4
@ -73,3 +73,7 @@ SilverStripe\Assets\File:
|
||||
- LeKoala\FilePond\FilePondFileExtension
|
||||
LeKoala\FilePond\FilePondField:
|
||||
enable_auto_thumbnails: true
|
||||
|
||||
Dynamic\Elements\Oembed\Elements\ElementOembed:
|
||||
extensions:
|
||||
- A2nt\ElementalBasics\Extensions\ElementOembedEx
|
||||
|
17
src/Extensions/ElementOembedEx.php
Normal file
17
src/Extensions/ElementOembedEx.php
Normal file
@ -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
Block a user