Remove client_route for now; might be yagni
authorColeman Watts <coleman@civicrm.org>
Tue, 26 Nov 2019 17:27:46 +0000 (12:27 -0500)
committerCiviCRM <info@civicrm.org>
Wed, 16 Sep 2020 02:13:20 +0000 (19:13 -0700)
ext/afform/core/CRM/Afform/AfformScanner.php
ext/afform/core/afform.php

index d4a2bef678a347dadcb6d230bab7f664be22fdb6..6a6c79734317455046e180c2ccc16664badf9b72 100644 (file)
@@ -120,7 +120,7 @@ class CRM_Afform_AfformScanner {
    * @param string $name
    *   Ex: 'view-individual'
    * @return array
-   *   An array with some mix of the following keys: name, title, description, client_route, server_route, requires.
+   *   An array with some mix of the following keys: name, title, description, server_route, requires, is_public.
    *   NOTE: This is only data available in *.aff.json. It does *NOT* include layout.
    *   Ex: [
    *     'name' => 'view-individual',
index 4e1a8f5da2424414b3373acaa420e1f29cc45056..eee6d1d0250d57489297567d8bc3aea194fcc6fe 100644 (file)
@@ -5,7 +5,7 @@ use CRM_Afform_ExtensionUtil as E;
 use Civi\Api4\Action\Afform\Submit;
 
 function _afform_fields() {
-  return ['name', 'title', 'description', 'requires', 'layout', 'server_route', 'client_route', 'is_public'];
+  return ['name', 'title', 'description', 'requires', 'layout', 'server_route', 'is_public'];
 }
 
 /**