Skip to content
Snippets Groups Projects
Commit 239b895c authored by colemanw's avatar colemanw
Browse files

Merge branch 'getPaths' into 'master'

entityType.php getPaths - more details

See merge request documentation/docs/dev!1206
parents 26d4f1da ab2bde4f
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ The entityType definition array can contain the following keys:
* `add` (`string`)
* `icon` (`string`)
* `label_field` (`string`)
* **`'getPaths'`** (`callback():array`) - Function returning an array of paths at which this entity can be created, viewed, updated & deleted
* **`'getPaths'`** (`callback():array`) - Function returning an array of zero or more paths, each keyed by the action that the path is used for. The most common actions are `'add'`, `'view'`, `'update'` and `'delete'`. Less common actions include `'browse'`, `'preview'`, `'copy'` and `'detach'`. Paths may include square-bracket tokens such as `[id]` or `[price_set_id]`.
* **`'getIndices'`** (`callback():array`) - Function returning an array of sql indices.
* **`'getFields'`** (`callback():array`) - Function returning an array of field definitions, keyed by field name, with possible values:
* `title` (`ts(string)`)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment