From 053ab2a598e0d8090a4bb8af5c44ca4b7df09376 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 23 Feb 2021 01:22:40 -0800 Subject: [PATCH] afform - Define the 'is_token' property --- ext/afform/core/CRM/Afform/AfformScanner.php | 1 + ext/afform/core/Civi/Api4/Action/Afform/Get.php | 1 + ext/afform/core/Civi/Api4/Afform.php | 4 ++++ ext/afform/docs/crud.md | 1 + 4 files changed, 7 insertions(+) diff --git a/ext/afform/core/CRM/Afform/AfformScanner.php b/ext/afform/core/CRM/Afform/AfformScanner.php index d3b0f07702..fd04527d0f 100644 --- a/ext/afform/core/CRM/Afform/AfformScanner.php +++ b/ext/afform/core/CRM/Afform/AfformScanner.php @@ -134,6 +134,7 @@ class CRM_Afform_AfformScanner { 'description' => '', 'is_dashlet' => FALSE, 'is_public' => FALSE, + 'is_token' => FALSE, 'permission' => 'access CiviCRM', ]; diff --git a/ext/afform/core/Civi/Api4/Action/Afform/Get.php b/ext/afform/core/Civi/Api4/Action/Afform/Get.php index 180bc20c6b..1fa292d809 100644 --- a/ext/afform/core/Civi/Api4/Action/Afform/Get.php +++ b/ext/afform/core/Civi/Api4/Action/Afform/Get.php @@ -117,6 +117,7 @@ class Get extends \Civi\Api4\Generic\BasicGetAction { 'description' => '', 'is_dashlet' => FALSE, 'is_public' => FALSE, + 'is_token' => FALSE, 'permission' => 'access CiviCRM', 'join' => 'Custom_' . $custom['name'], 'block' => $custom['extends'], diff --git a/ext/afform/core/Civi/Api4/Afform.php b/ext/afform/core/Civi/Api4/Afform.php index 130f1110b0..80abd69833 100644 --- a/ext/afform/core/Civi/Api4/Afform.php +++ b/ext/afform/core/Civi/Api4/Afform.php @@ -153,6 +153,10 @@ class Afform extends Generic\AbstractEntity { 'name' => 'is_public', 'data_type' => 'Boolean', ], + [ + 'name' => 'is_token', + 'data_type' => 'Boolean', + ], [ 'name' => 'repeat', 'data_type' => 'Mixed', diff --git a/ext/afform/docs/crud.md b/ext/afform/docs/crud.md index c51e70f09a..83a87e05f3 100644 --- a/ext/afform/docs/crud.md +++ b/ext/afform/docs/crud.md @@ -15,6 +15,7 @@ $ cv api4 afform.get +w name=helloWorld "description": "", "is_dashlet": false, "is_public": false, + "is_token": false, "server_route": "civicrm/hello-world", "layout": { "#tag": "div", -- 2.25.1