@@ -64,6 +64,9 @@ discard block |
||
| 64 | 64 | $this->add($actions); |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | + /** |
|
| 68 | + * @param string $ident |
|
| 69 | + */ |
|
| 67 | 70 | public function isAllowed($ident, $model = null): bool |
| 68 | 71 | { |
| 69 | 72 | $action = $this->find($ident); |
@@ -84,6 +87,9 @@ discard block |
||
| 84 | 87 | return $action->shouldRender($model); |
| 85 | 88 | } |
| 86 | 89 | |
| 90 | + /** |
|
| 91 | + * @param string $baseActionIdent |
|
| 92 | + */ |
|
| 87 | 93 | public function moveAfter($baseActionIdent, $movableActionIdent) |
| 88 | 94 | { |
| 89 | 95 | if (!$this->find($baseActionIdent) || !$this->find($movableActionIdent)) { |
@@ -108,6 +114,9 @@ discard block |
||
| 108 | 114 | $this->actions = $actions; |
| 109 | 115 | } |
| 110 | 116 | |
| 117 | + /** |
|
| 118 | + * @param string $baseActionIdent |
|
| 119 | + */ |
|
| 111 | 120 | public function moveBefore($baseActionIdent, $movableActionIdent) |
| 112 | 121 | { |
| 113 | 122 | if (!$this->find($baseActionIdent) || !$this->find($movableActionIdent)) { |