@@ 1290-1297 (lines=8) @@ | ||
1287 | * |
|
1288 | * @return Form\Tools |
|
1289 | */ |
|
1290 | public function header(Closure $callback = null) |
|
1291 | { |
|
1292 | if (func_num_args() === 0) { |
|
1293 | return $this->builder->getTools(); |
|
1294 | } |
|
1295 | ||
1296 | $callback->call($this, $this->builder->getTools()); |
|
1297 | } |
|
1298 | ||
1299 | /** |
|
1300 | * Indicates if current form page is creating. |
|
@@ 1400-1407 (lines=8) @@ | ||
1397 | * |
|
1398 | * @return \Encore\Admin\Form\Footer |
|
1399 | */ |
|
1400 | public function footer(Closure $callback = null) |
|
1401 | { |
|
1402 | if (func_num_args() === 0) { |
|
1403 | return $this->builder()->getFooter(); |
|
1404 | } |
|
1405 | ||
1406 | $callback($this->builder()->getFooter()); |
|
1407 | } |
|
1408 | ||
1409 | /** |
|
1410 | * Get current resource route url. |