Loading cookies_module_handler.module +2 −2 Original line number Diff line number Diff line Loading @@ -87,8 +87,8 @@ function cookies_module_handler_page_attachments(&$page) { if ($protect && isset($entity_id)) { if (isset($head_tag[0]['#attributes'])) { if ($head_tag[0]['#attributes'] instanceof Attribute) { $head_tag[0]['#attributes']->setAttibute('data-cookies-js-id', [$entity_id]); $head_tag[0]['#attributes']->setAttibute('type', ['text/plain']); $head_tag[0]['#attributes']->setAttribute('data-cookies-js-id', [$entity_id]); $head_tag[0]['#attributes']->setAttribute('type', ['text/plain']); } elseif (is_array($head_tag[0]['#attributes'])) { $head_tag[0]['#attributes']['data-cookies-js-id'] = $entity_id; Loading Loading
cookies_module_handler.module +2 −2 Original line number Diff line number Diff line Loading @@ -87,8 +87,8 @@ function cookies_module_handler_page_attachments(&$page) { if ($protect && isset($entity_id)) { if (isset($head_tag[0]['#attributes'])) { if ($head_tag[0]['#attributes'] instanceof Attribute) { $head_tag[0]['#attributes']->setAttibute('data-cookies-js-id', [$entity_id]); $head_tag[0]['#attributes']->setAttibute('type', ['text/plain']); $head_tag[0]['#attributes']->setAttribute('data-cookies-js-id', [$entity_id]); $head_tag[0]['#attributes']->setAttribute('type', ['text/plain']); } elseif (is_array($head_tag[0]['#attributes'])) { $head_tag[0]['#attributes']['data-cookies-js-id'] = $entity_id; Loading