... | ... |
@@ -18,7 +18,6 @@ class BackgroundWrapperController extends AbstractContentElementController |
18 | 18 |
{ |
19 | 19 |
protected function getResponse(FragmentTemplate $template, ContentModel $model, Request $request): Response |
20 | 20 |
{ |
21 |
- $GLOBALS['TL_CSS']['vr_coretools'] = 'bundles/vonrotenbergcoretools/css/background-wrapper.min.css|static'; |
|
22 | 21 |
$arrData = array_merge($template->getData(),[ |
23 | 22 |
'element_css_classes' => trim($template->element_css_classes . ' ' . $this->getWrapperClasses($model)) |
24 | 23 |
]); |
... | ... |
@@ -28,6 +28,7 @@ class KernelRequestSubscriber implements EventSubscriberInterface |
28 | 28 |
$request = $e->getRequest(); |
29 | 29 |
|
30 | 30 |
if ($this->scopeMatcher->isBackendRequest($request)) { |
31 |
+ $GLOBALS['TL_CSS'][] = 'bundles/vonrotenbergcoretools/css/background-wrapper.min.css|static'; |
|
31 | 32 |
$GLOBALS['TL_CSS'][] = 'bundles/vonrotenbergcoretools/css/be_grid_position_widget.min.css|static'; |
32 | 33 |
$GLOBALS['TL_JAVASCRIPT'][] = 'bundles/vonrotenbergcoretools/js/GridSelectionHandler.js|async'; |
33 | 34 |
} |