Set data_type on various fields in Afform API
authorColeman Watts <coleman@civicrm.org>
Sat, 30 Jan 2021 01:51:32 +0000 (20:51 -0500)
committerColeman Watts <coleman@civicrm.org>
Sat, 30 Jan 2021 01:51:32 +0000 (20:51 -0500)
ext/afform/core/Civi/Api4/Afform.php

index ae2a328d0ea602f988c2b21d9df170b9801e85e2..130f1110b030b2730ec13c075a1eb865ec557fa8 100644 (file)
@@ -130,6 +130,7 @@ class Afform extends Generic\AbstractEntity {
         ],
         [
           'name' => 'requires',
+          'data_type' => 'Array',
         ],
         [
           'name' => 'block',
@@ -164,6 +165,7 @@ class Afform extends Generic\AbstractEntity {
         ],
         [
           'name' => 'layout',
+          'data_type' => 'Array',
         ],
       ];
 
@@ -176,9 +178,11 @@ class Afform extends Generic\AbstractEntity {
         ];
         $fields[] = [
           'name' => 'has_local',
+          'data_type' => 'Boolean',
         ];
         $fields[] = [
           'name' => 'has_base',
+          'data_type' => 'Boolean',
         ];
       }