From 5e6df13faaa014badd9adf5185a56e36689fb7a6 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 6 Nov 2024 15:10:36 +1300 Subject: [PATCH] ENH Add extension required for new elemental behat test (#210) --- 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'); + } +}