1 | <?php |
||
32 | class ThemeManager extends AbstractThemeManager { |
||
33 | |||
34 | /** |
||
35 | * Service name. |
||
36 | * |
||
37 | * @var string |
||
38 | */ |
||
39 | const SERVICE_NAME = "webeweb.core.manager.theme"; |
||
40 | |||
41 | /** |
||
42 | * Get the application theme provider. |
||
43 | * |
||
44 | * @return ApplicationThemeProviderInterface Returns the application theme provider. |
||
45 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
46 | */ |
||
47 | public function getApplicationThemeProvider() { |
||
48 | return $this->getProvider(ApplicationThemeProviderInterface::class); |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * Get the breadcrumbs theme provider. |
||
53 | * |
||
54 | * @return BreadcrumbsThemeProviderInterface Returns the breadcrumbs theme provider. |
||
55 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
56 | */ |
||
57 | public function getBreadcrumbsThemeProvider() { |
||
58 | return $this->getProvider(BreadcrumbsThemeProviderInterface::class); |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * Get the footer theme provider. |
||
63 | * |
||
64 | * @return FooterThemeProviderInterface Returns the footer theme provider. |
||
65 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
66 | */ |
||
67 | public function getFooterThemeProvider() { |
||
68 | return $this->getProvider(FooterThemeProviderInterface::class); |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * Get the hook drop down theme provider. |
||
73 | * |
||
74 | * @return HookDropDownThemeProviderInterface Returns the hook drop down theme provider. |
||
75 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
76 | */ |
||
77 | public function getHookDropDownThemeProvider() { |
||
78 | return $this->getProvider(HookDropDownThemeProviderInterface::class); |
||
79 | } |
||
80 | |||
81 | /** |
||
82 | * Get the navigation theme provider. |
||
83 | * |
||
84 | * @return NavigationThemeProviderInterface Returns the navigation theme provider. |
||
85 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
86 | */ |
||
87 | public function getNavigationThemeProvider() { |
||
88 | return $this->getProvider(NavigationThemeProviderInterface::class); |
||
89 | } |
||
90 | |||
91 | /** |
||
92 | * Get the notifications drop down theme provider. |
||
93 | * |
||
94 | * @return NotificationsDropDownThemeProviderInterface Returns the Notifications drop down theme provider. |
||
95 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
96 | */ |
||
97 | public function getNotificationsDropDownThemeProvider() { |
||
98 | return $this->getProvider(NotificationsDropDownThemeProviderInterface::class); |
||
99 | } |
||
100 | |||
101 | /** |
||
102 | * Get the search theme provider. |
||
103 | * |
||
104 | * @return SearchThemeProviderInterface Returns the search theme provider. |
||
105 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
106 | */ |
||
107 | public function getSearchThemeProvider() { |
||
108 | return $this->getProvider(SearchThemeProviderInterface::class); |
||
109 | } |
||
110 | |||
111 | /** |
||
112 | * Get the tasks drop down theme provider. |
||
113 | * |
||
114 | * @return TasksDropDownThemeProviderInterface Returns the tasks drop down theme provider. |
||
115 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
116 | */ |
||
117 | public function getTasksDropDownThemeProvider() { |
||
118 | return $this->getProvider(TasksDropDownThemeProviderInterface::class); |
||
119 | } |
||
120 | |||
121 | /** |
||
122 | * Get the user info theme provider. |
||
123 | * |
||
124 | * @return UserInfoThemeProviderInterface Returns the user info theme provider. |
||
125 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
126 | */ |
||
127 | public function getUserInfoThemeProvider() { |
||
130 | |||
131 | /** |
||
132 | * {@inheritDoc} |
||
133 | */ |
||
134 | protected function initIndex() { |
||
147 | |||
148 | /** |
||
149 | * Set the application theme provider. |
||
150 | * |
||
151 | * @param ApplicationThemeProviderInterface $provider The application theme provider. |
||
152 | * @return ManagerInterface Returns this manager. |
||
153 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
154 | */ |
||
155 | public function setApplicationThemeProvider(ApplicationThemeProviderInterface $provider) { |
||
159 | |||
160 | /** |
||
161 | * Set the breadcrumbs theme provider. |
||
162 | * |
||
163 | * @param BreadcrumbsThemeProviderInterface $provider The breadcrumbs theme provider. |
||
164 | * @return ManagerInterface Returns this manager. |
||
165 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
166 | */ |
||
167 | public function setBreadcrumbsThemeProvider(BreadcrumbsThemeProviderInterface $provider) { |
||
171 | |||
172 | /** |
||
173 | * Set the footer theme provider. |
||
174 | * |
||
175 | * @param FooterThemeProviderInterface $provider The footer theme provider. |
||
176 | * @return ManagerInterface Returns this manager. |
||
177 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
178 | */ |
||
179 | public function setFooterThemeProvider(FooterThemeProviderInterface $provider) { |
||
183 | |||
184 | /** |
||
185 | * Set the hook drop down theme provider. |
||
186 | * |
||
187 | * @param HookDropDownThemeProviderInterface $provider The hook drop down theme provider. |
||
188 | * @return ManagerInterface Returns this manager. |
||
189 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
190 | */ |
||
191 | public function setHookDropDownThemeProvider(HookDropDownThemeProviderInterface $provider) { |
||
195 | |||
196 | /** |
||
197 | * Set the navigation theme provider. |
||
198 | * |
||
199 | * @param NavigationThemeProviderInterface $provider The navigation theme provider. |
||
200 | * @return ManagerInterface Returns this manager. |
||
201 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
202 | */ |
||
203 | public function setNavigationThemeProvider(NavigationThemeProviderInterface $provider) { |
||
207 | |||
208 | /** |
||
209 | * Set the notifications drop down theme provider. |
||
210 | * |
||
211 | * @param NotificationsDropDownThemeProviderInterface $provider The notifications drop down theme provider. |
||
212 | * @return ManagerInterface Returns this manager. |
||
213 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
214 | */ |
||
215 | public function setNotificationsDropDownThemeProvider(NotificationsDropDownThemeProviderInterface $provider) { |
||
219 | |||
220 | /** |
||
221 | * Set the search theme provider. |
||
222 | * |
||
223 | * @param SearchThemeProviderInterface $provider The search theme provider. |
||
224 | * @return ManagerInterface Returns this manager. |
||
225 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
226 | */ |
||
227 | public function setSearchThemeProvider(SearchThemeProviderInterface $provider) { |
||
231 | |||
232 | /** |
||
233 | * Set the tasks drop down theme provider. |
||
234 | * |
||
235 | * @param TasksDropDownThemeProviderInterface $provider The tasks drop down theme provider. |
||
236 | * @return ManagerInterface Returns this manager. |
||
237 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
238 | */ |
||
239 | public function setTasksDropDownThemeProvider(TasksDropDownThemeProviderInterface $provider) { |
||
243 | |||
244 | /** |
||
245 | * Set the user info theme provider. |
||
246 | * |
||
247 | * @param UserInfoThemeProviderInterface $provider The user info theme provider. |
||
248 | * @return ManagerInterface Returns this manager. |
||
249 | * @throws ReflectionException Throws a reflection exception if an error occurs. |
||
250 | */ |
||
251 | public function setUserInfoThemeProvider(UserInfoThemeProviderInterface $provider) { |
||
255 | } |
||
256 |