1 | <?php |
||
14 | abstract class AbstractViewController extends Controller |
||
15 | { |
||
16 | /** |
||
17 | * The index view template path |
||
18 | */ |
||
19 | const TEMPLATE_BASE = 'patron/_cp'; |
||
20 | |||
21 | /******************************************* |
||
22 | * VARIABLES |
||
23 | *******************************************/ |
||
24 | |||
25 | /** |
||
26 | * @return string |
||
27 | */ |
||
28 | protected function getBaseActionPath(): string |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | protected function getBaseCpPath(): string |
||
40 | |||
41 | /** |
||
42 | * @param string $endpoint |
||
43 | * @return string |
||
44 | */ |
||
45 | protected function getBaseContinueEditingUrl(string $endpoint = ''): string |
||
49 | |||
50 | /******************************************* |
||
51 | * VARIABLES |
||
52 | *******************************************/ |
||
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | protected function baseVariables(array &$variables = []) |
||
93 | |||
94 | /** |
||
95 | * @param array $variables |
||
96 | */ |
||
97 | protected function insertVariables(array &$variables) |
||
114 | } |
||
115 |