From 680e6d4bf46bef815686375fd32d23618149543d Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Wed, 6 Nov 2024 13:49:31 +1300 Subject: [PATCH] ENH Add extension required for new elemental behat test --- code/elemental/FileElementalExtension.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 code/elemental/FileElementalExtension.php diff --git a/code/elemental/FileElementalExtension.php b/code/elemental/FileElementalExtension.php new file mode 100644 index 0000000..1d93e21 --- /dev/null +++ b/code/elemental/FileElementalExtension.php @@ -0,0 +1,23 @@ + File::class, + ]; + + private static $owns = [ + 'MyFile', + ]; + + public function updateCMSFields(FieldList $fields) + { + $fields->removeByName('HTML'); + } +}