]> _ Git - cubist_cms-back.git/commitdiff
wip #5408
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Sun, 28 Aug 2022 11:29:23 +0000 (13:29 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Sun, 28 Aug 2022 11:29:23 +0000 (13:29 +0200)
src/app/Magic/SubForm.php

index 2d2c271dfe428588e5b19c55da675c9644efac30..3af9f235fe67cfb1eca55da6399dd6abf5037ded 100644 (file)
@@ -6,9 +6,7 @@ namespace Cubist\Backpack\Magic;
 
 class SubForm
 {
-    use BunchOfFields{
-        addField as bofAddField;
-    }
+    use BunchOfFields;
 
     public function __construct()
     {
@@ -19,12 +17,12 @@ class SubForm
 
     }
 
-    public function addField($name, $type = 'Text', $label = '', $attributes = [])
-    {
-        $reserved = ['type','name'];
-        if (in_array($name, $reserved)) {
-            throw new \Exception('The field name `' . $name . '` is a reserved name and can not be used in a subform.');
-        }
-        return $this->bofAddField($name,$type,$label,$attributes);
-    }
+//    public function addField($name, $type = 'Text', $label = '', $attributes = [])
+//    {
+//        $reserved = ['type','name'];
+//        if (in_array($name, $reserved)) {
+//            throw new \Exception('The field name `' . $name . '` is a reserved name and can not be used in a subform.');
+//        }
+//        return $this->bofAddField($name,$type,$label,$attributes);
+//    }
 }