Skip to content

Commit

Permalink
ENH Add extension required for new elemental behat test (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Nov 6, 2024
1 parent 17cb428 commit 5e6df13
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 5e6df13

Please sign in to comment.