1 | <?php |
||
7 | class ShowHideColumnsTool extends AbstractTool |
||
8 | { |
||
9 | /** |
||
10 | * Position where should tool be placed. |
||
11 | */ |
||
12 | 1 | public function position() |
|
13 | { |
||
14 | 1 | return self::POSITION_HEADER; |
|
15 | } |
||
16 | |||
17 | /** |
||
18 | * Unique tool identifier. |
||
19 | */ |
||
20 | 4 | public function identifier(): string |
|
24 | |||
25 | /** |
||
26 | * Tool's view. |
||
27 | */ |
||
28 | 1 | public function render() |
|
34 | |||
35 | /** |
||
36 | * Handle tool execution. |
||
37 | * @param Request $request |
||
38 | */ |
||
39 | 1 | public function handle(Request $request) |
|
43 | |||
44 | /** |
||
45 | * Check allowance to show and process tool. |
||
46 | */ |
||
47 | 1 | public function check(): bool |
|
51 | } |
||
52 |