Skip to content
Snippets Groups Projects

Issue #3301976: Remove separate cookies/cookiesjsr.cdn library and use cookies/cookiesjsr instead

Files

@@ -82,9 +82,8 @@ class CookiesUiBlock extends BlockBase implements ContainerFactoryPluginInterfac
* {@inheritdoc}
*/
public function build() {
$lib = $this->cookiesConfigService->getLibrary();
$attatched = [
'library' => [$lib],
$attached = [
'library' => ['cookies/cookiesjsr'],
'drupalSettings' => [
'cookiesjsr' => $this->cookiesConfigService->getCookiesConfig(),
],
@@ -92,7 +91,7 @@ class CookiesUiBlock extends BlockBase implements ContainerFactoryPluginInterfac
$build = [
'#theme' => 'cookies_container',
'#styles' => (bool) $this->cookiesConfig->get('use_default_styles'),
'#attached' => $attatched,
'#attached' => $attached,
'#cache' => [
'contexts' => ['languages'],
'tags' => [
Loading