| @@ 347-351 (lines=5) @@ | ||
| 344 | */ |
|
| 345 | public function validate(Request $request) |
|
| 346 | { |
|
| 347 | if ($this->action instanceof RowAction) { |
|
| 348 | call_user_func([$this->action, 'form'], $this->action->getRow()); |
|
| 349 | } else { |
|
| 350 | call_user_func([$this->action, 'form']); |
|
| 351 | } |
|
| 352 | ||
| 353 | $failedValidators = []; |
|
| 354 | ||
| @@ 477-481 (lines=5) @@ | ||
| 474 | */ |
|
| 475 | protected function buildActionPromise() |
|
| 476 | { |
|
| 477 | if ($this->action instanceof RowAction) { |
|
| 478 | call_user_func([$this->action, 'form'], $this->action->getRow()); |
|
| 479 | } else { |
|
| 480 | call_user_func([$this->action, 'form']); |
|
| 481 | } |
|
| 482 | ||
| 483 | $this->addModalHtml(); |
|
| 484 | ||