Rename 'route' to 'server_route'
authorTim Otten <totten@civicrm.org>
Wed, 13 Jun 2018 03:11:45 +0000 (20:11 -0700)
committerCiviCRM <info@civicrm.org>
Wed, 16 Sep 2020 02:13:16 +0000 (19:13 -0700)
ext/afform/CRM/Afform/AfformScanner.php
ext/afform/README.md
ext/afform/afform.php
ext/afform/api/v3/Afform/Get.php

index d15cc855d7f65bf2ecc3a8084eac77444d1898dc..b6bf50a4c87ae47d3de48e6fa7f6850bc51b3ceb 100644 (file)
@@ -108,11 +108,11 @@ class CRM_Afform_AfformScanner {
    * @param string $name
    *   Ex: 'view-individual'
    * @return array
-   *   An array with some mix of the following keys: name, title, description, route, requires
+   *   An array with some mix of the following keys: name, title, description, client_route, server_route, requires
    *   Ex: [
    *     'name' => 'view-individual',
    *     'title' => 'View an individual contact',
-   *     'route' => 'civicrm/view-individual',
+   *     'server_route' => 'civicrm/view-individual',
    *     'requires' => ['afform'],
    *   ]
    */
index 8ddd872dcabcad271c7a51cb017e296d1bb71eee..9ddd4b3b2af51f2e2279e94d2f5c14b5bca784c6 100644 (file)
@@ -44,7 +44,7 @@ this example, we create a form named `foobar`:
 ```
 $ cd /path/to/my/own/extension
 $ mkdir -p afform/foobar
-$ echo '{"route": "civicrm/foobar"}' > afform/foobar/meta.json
+$ echo '{"server_route": "civicrm/foobar"}' > afform/foobar/meta.json
 $ echo '<div>Hello {{param.name}}</div>' > afform/foobar/layout.html
 $ cv flush
 $ cv url civicrm/foobar?name=world
index 5eaaa6ca13b25ce78901627756664dc5b68cba7c..084a2cd3cfc68c0dd43e66a25dd60a4fbe63c08f 100644 (file)
@@ -4,7 +4,7 @@ require_once 'afform.civix.php';
 use CRM_Afform_ExtensionUtil as E;
 
 function _afform_fields() {
-  return ['name', 'title', 'description', 'requires', 'layout'];
+  return ['name', 'title', 'description', 'requires', 'layout', 'server_route', 'client_route'];
 }
 
 /**
index a8702e0d178056e484653be42c3019ff4fa74acb..b4b3e9a398ab48451e6afae815d4f7d71a12eb6c 100644 (file)
@@ -26,7 +26,7 @@ function _civicrm_api3_afform_get_spec(&$spec) {
     'description' => 'Description',
   );
 
-  // FIXME: title, requires, layout
+  // FIXME: title, requires, layout, server_route, client_route
 }
 
 /**