IMPR: VideoFile

This commit is contained in:
Tony Air 2022-11-01 22:16:00 +02:00
parent 9487516e6a
commit ce01c06af4
2 changed files with 21 additions and 0 deletions

View File

@ -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

View 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',
];
}