Skip to content

Commit

Permalink
Merge branch '1' into 2
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 6, 2024
2 parents 4ecbf4a + 5e6df13 commit 15be53e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions code/elemental/FileElementalExtension.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace SilverStripe\FrameworkTest\Elemental\Extension;

use SilverStripe\Assets\File;
use SilverStripe\Core\Extension;
use SilverStripe\Forms\FieldList;

class FileElementalExtension extends Extension
{
private static $has_one = [
'MyFile' => File::class,
];

private static $owns = [
'MyFile',
];

public function updateCMSFields(FieldList $fields)
{
$fields->removeByName('HTML');
}
}

0 comments on commit 15be53e

Please sign in to comment.