| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class Edit extends BaseAction |
||
| 10 | { |
||
| 11 | const ACTION = 'edit'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param $row |
||
| 15 | * @param int $bootstrapColWidth |
||
| 16 | * @return array|string |
||
| 17 | */ |
||
| 18 | public function render($row, int $bootstrapColWidth = BaseAction::BOOTSTRAP_COL_WIDTH) |
||
| 19 | { |
||
| 20 | return view('grid_view::actions.'.self::ACTION, [ |
||
| 21 | 'url' => $this->getUrl($row), |
||
| 22 | 'bootstrapColWidth' => $bootstrapColWidth, |
||
| 23 | 'htmlAttributes' => $this->buildHtmlAttributes() |
||
| 24 | ])->render(); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param $row |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | protected function buildUrl($row) |
||
| 34 | } |
||
| 35 | } |
||
| 36 |