Skip to content

Commit 740f3d0

Browse files
committed
minor #6925 (minor) Reorder actions and use the Action class to refer to them in Crud (Pierstoval)
This PR was merged into the 4.x branch. Discussion ---------- (minor) Reorder actions and use the Action class to refer to them in Crud It's a minor change, but it should check out 😉 Commits ------- f7ca836 Reorder actions and use the Action class to refer to them in Crud
2 parents 0c35a0d + f7ca836 commit 740f3d0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Config/Crud.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@ class Crud
2020
public const PAGE_EDIT = 'edit';
2121
public const PAGE_INDEX = 'index';
2222
public const PAGE_NEW = 'new';
23-
public const ACTION_NAMES = ['index', 'detail', 'edit', 'new', 'delete', 'batchDelete', 'autocomplete'];
23+
public const ACTION_NAMES = [
24+
'autocomplete', // Internal action
25+
Action::BATCH_DELETE,
26+
Action::DELETE,
27+
Action::DETAIL,
28+
Action::EDIT,
29+
Action::INDEX,
30+
Action::NEW,
31+
];
2432
public const LAYOUT_CONTENT_DEFAULT = 'normal';
2533
public const LAYOUT_CONTENT_FULL = 'full';
2634
public const LAYOUT_SIDEBAR_DEFAULT = 'normal';

0 commit comments

Comments
 (0)