use Civi\Api4\Generic\AbstractEntity;
use Civi\Api4\Generic\BasicBatchAction;
use Civi\Api4\Generic\BasicGetAction;
+use Civi\Api4\Generic\BasicGetFieldsAction;
use Civi\Api4\Generic\BasicUpdateAction;
/**
return new BasicUpdateAction('Afform', __FUNCTION__, $save, 'name');
}
+ public static function getFields() {
+ return new BasicGetFieldsAction('Afform', __FUNCTION__, function() {
+ return [
+ [
+ 'name' => 'name',
+ ],
+ [
+ 'name' => 'requires',
+ ],
+ [
+ 'name' => 'title',
+ ],
+ [
+ 'name' => 'description',
+ ],
+ [
+ 'name' => 'is_public',
+ 'data_type' => 'Boolean',
+ ],
+ [
+ 'name' => 'server_route',
+ ],
+ [
+ 'name' => 'layout',
+ ],
+ ];
+ });
+ }
+
/**
* @return array
*/
use Civi\Api4\Generic\AbstractEntity;
use Civi\Api4\Generic\BasicGetAction;
+use Civi\Api4\Generic\BasicGetFieldsAction;
/**
* Class AfformPalette
});
}
+ public static function getFields() {
+ return new BasicGetFieldsAction('Afform', __FUNCTION__, function() {
+ return [
+ [
+ 'name' => 'id',
+ ],
+ [
+ 'name' => 'entity',
+ ],
+ [
+ 'name' => 'title',
+ ],
+ [
+ 'name' => 'template',
+ ],
+ ];
+ });
+ }
+
/**
* @return array
*/
use Civi\Api4\Generic\AbstractEntity;
use Civi\Api4\Generic\BasicGetAction;
+use Civi\Api4\Generic\BasicGetFieldsAction;
/**
* Class AfformTag
});
}
+ public static function getFields() {
+ return new BasicGetFieldsAction('Afform', __FUNCTION__, function() {
+ return [
+ [
+ 'name' => 'name',
+ ],
+ [
+ 'name' => 'attrs',
+ ],
+ ];
+ });
+ }
+
/**
* @return array
*/