Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
9 | class Destroy extends BaseButton |
||
10 | { |
||
11 | const ACTION = 'delete'; |
||
12 | |||
13 | /** |
||
14 | * @param $row |
||
15 | * @return array|string |
||
16 | * @throws \Throwable |
||
17 | */ |
||
18 | public function render($row) |
||
19 | { |
||
20 | return view('churakovmike_easygrid::actions.destroy', [ |
||
21 | 'url' => $this->getUrl($row), |
||
22 | ])->render(); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Build link to edit delete item. |
||
27 | * |
||
28 | * @param $row |
||
29 | * @return string |
||
30 | */ |
||
31 | public function buildUrl($row) |
||
34 | } |
||
35 | } |
||
36 |