Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 2627866

Browse files
committed
fixed example of object_actions for generator.yml
1 parent cd9b7f7 commit 2627866

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

reference/en/06-Admin-Generator.markdown

+6-3
Original file line numberDiff line numberDiff line change
@@ -563,11 +563,14 @@ The executed method received the primary keys of the selected objects via the
563563
*Default value*: `{ _edit: ~, _delete: ~ }`
564564

565565
The `object_actions` option defines the list of actions that can be executed
566-
on each object of the list. The list of actions is an associative array which
567-
keys are the route names and values an array of methods:
566+
on each object of the list:
568567

569568
[yml]
570-
object_actions: { publish: get, publishBis: [get, post] }
569+
object_actions:
570+
moveUp: { label: "move up", action: "moveUp" }
571+
moveDown: { label: "move down", action: "moveDown" }
572+
_edit: ~
573+
_delete: ~
571574

572575
If you don't define an `action`, the admin generator will look for a method
573576
named after the camel-cased name prefixed by `executeList`.

0 commit comments

Comments
 (0)