afform - Define the 'is_token' property
authorTim Otten <totten@civicrm.org>
Tue, 23 Feb 2021 09:22:40 +0000 (01:22 -0800)
committerTim Otten <totten@civicrm.org>
Wed, 3 Mar 2021 20:19:05 +0000 (12:19 -0800)
ext/afform/core/CRM/Afform/AfformScanner.php
ext/afform/core/Civi/Api4/Action/Afform/Get.php
ext/afform/core/Civi/Api4/Afform.php
ext/afform/docs/crud.md

index d3b0f0770266bf368d5a8f83f092dcbee9a04fcf..fd04527d0f4b01e20aabb8f627541b25982a80f0 100644 (file)
@@ -134,6 +134,7 @@ class CRM_Afform_AfformScanner {
       'description' => '',
       'is_dashlet' => FALSE,
       'is_public' => FALSE,
+      'is_token' => FALSE,
       'permission' => 'access CiviCRM',
     ];
 
index 180bc20c6bee6a9d9d249151a8806ab39cbc4221..1fa292d809b559f29186827d642792f5a2ec739d 100644 (file)
@@ -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'],
index 130f1110b030b2730ec13c075a1eb865ec557fa8..80abd698330d2a2db85f41ae0f4301fa0bc44332 100644 (file)
@@ -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',
index c51e70f09a3a5c96671b3b9eb47c3fcb66ed0085..83a87e05f34b8d86d28f0a69f4a77d2e06d0b742 100644 (file)
@@ -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",