1 | <?php |
||
23 | abstract class AbstractController extends Controller |
||
24 | { |
||
25 | /** |
||
26 | * The index view template path |
||
27 | */ |
||
28 | const TEMPLATE_BASE = 'organizations/_cp'; |
||
29 | |||
30 | /******************************************* |
||
31 | * BASE PATHS |
||
32 | *******************************************/ |
||
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | protected function getBaseActionPath(): string |
||
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | */ |
||
45 | protected function getBaseCpPath(): string |
||
49 | |||
50 | /** |
||
51 | * @param string $endpoint |
||
52 | * @return string |
||
53 | */ |
||
54 | protected function getBaseContinueEditingUrl(string $endpoint = ''): string |
||
58 | |||
59 | /******************************************* |
||
60 | * VARIABLES |
||
61 | *******************************************/ |
||
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | protected function baseVariables(array &$variables = []) |
||
94 | |||
95 | /******************************************* |
||
96 | * UPSERT VARIABLES |
||
97 | *******************************************/ |
||
98 | |||
99 | /** |
||
100 | * @param array $variables |
||
101 | */ |
||
102 | protected function insertVariables(array &$variables) |
||
113 | } |
||
114 |