* @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'],
* ]
*/
```
$ 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
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'];
}
/**
'description' => 'Description',
);
- // FIXME: title, requires, layout
+ // FIXME: title, requires, layout, server_route, client_route
}
/**