1 | <?php |
||
22 | trait ThemeCheckTrait |
||
23 | { |
||
24 | /** @var ConfigInterface */ |
||
25 | protected $configuration; |
||
26 | /** @var EnvironmentManager */ |
||
27 | protected $environmentManager; |
||
28 | /** @var ConfigInterface */ |
||
29 | private $themeConfig; |
||
30 | |||
31 | /** |
||
32 | * Checks if the selected theme supports the current state and returns the correct resource path. |
||
33 | * |
||
34 | * @param string $selectedTheme |
||
35 | * @return string |
||
36 | */ |
||
37 | 6 | protected function getSelectedThemeResourcePath(string &$selectedTheme) : string |
|
58 | |||
59 | /** |
||
60 | * Checks if the selected theme can be used with the current application. |
||
61 | * |
||
62 | * @return bool |
||
63 | */ |
||
64 | 6 | private function checkSelectedThemeFeatures() : bool |
|
82 | |||
83 | /** |
||
84 | * Checks whether the current application belongs to the Admin module and the request calls the login page. |
||
85 | * |
||
86 | * @return bool |
||
87 | */ |
||
88 | 6 | private function isAdminLoginPage() : bool |
|
92 | |||
93 | /** |
||
94 | * Checks whether the current application belongs to the Admin module or not. |
||
95 | * |
||
96 | * @return bool |
||
97 | */ |
||
98 | 6 | private function isAdminApplication() : bool |
|
102 | |||
103 | /** |
||
104 | * Checks whether the current application belongs to any Website module application. |
||
105 | * |
||
106 | * @return bool |
||
107 | */ |
||
108 | 6 | private function isWebsiteApplication() |
|
112 | |||
113 | /** |
||
114 | * Checks the config for feature settings. |
||
115 | * |
||
116 | * @param string $feature |
||
117 | * @return bool |
||
118 | */ |
||
119 | 6 | private function isFeatureSupported(string $feature) : bool |
|
124 | } |
||
125 |