Skip to content

Commit f7ca836

Browse files
committed
Reorder actions and use the Action class to refer to them in Crud
1 parent 3aac011 commit f7ca836

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)