Closed (fixed)
Project:
Custom Elements
Version:
8.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2020 at 20:42 UTC
Updated:
20 Dec 2020 at 07:49 UTC
Jump to comment: Most recent
When requesting a custom elements page in I just got this error:
"error": [
"<em class=\"placeholder\">User deprecated function</em>: Setting slot value to an array is not supported. Provide a CustomElement, MarkupInterface or a markup string. Treating content as a render array. in <em class=\"placeholder\">Drupal\\custom_elements\\CustomElement->setSlot()</em> (line <em class=\"placeholder\">300</em> of <em class=\"placeholder\">modules/contrib/custom_elements/src/CustomElement.php</em>). <pre class=\"backtrace\">Drupal\\custom_elements\\CustomElement->setSlot('field_image', Array, 'div', Array) (Line: 29)\nDrupal\\custom_elements\\Processor\\FileReferenceFieldItemListProcessor->addtoElement(Object, Object, 'full') (Line: 138)\nDrupal\\custom_elements\\CustomElementGenerator->process(Object, Object, 'full') (Line: 100)\nDrupal\\custom_elements\\Processor\\DefaultContentEntityProcessor->addtoElement(Object, Object, 'full') (Line: 138)\nDrupal\\custom_elements\\CustomElementGenerator->process(Object, Object, 'full') (Line: 119)\nDrupal\\custom_elements\\CustomElementGenerator->generate(Object, 'full') (Line: 48)\nDrupal\\lupus_ce_renderer\\Controller\\CustomElementsController->entityView()\ncall_user_func(Array) (Line: 53)\nDrupal\\lupus_ce_renderer\\EventSubscriber\\CustomElementsControllerSubscriber->Drupal\\lupus_ce_renderer\\EventSubscriber\\{closure}() (Line: 158)\nSymfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object, 1) (Line: 80)\nSymfony\\Component\\HttpKernel\\HttpKernel->handle(Object, 1, 1) (Line: 57)\nDrupal\\Core\\StackMiddleware\\Session->handle(Object, 1, 1) (Line: 47)\nDrupal\\Core\\StackMiddleware\\KernelPreHandle->handle(Object, 1, 1) (Line: 106)\nDrupal\\page_cache\\StackMiddleware\\PageCache->pass(Object, 1, 1) (Line: 85)\nDrupal\\page_cache\\StackMiddleware\\PageCache->handle(Object, 1, 1) (Line: 47)\nDrupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)\nDrupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)\nStack\\StackedHttpKernel->handle(Object, 1, 1) (Line: 706)\nDrupal\\Core\\DrupalKernel->handle(Object) (Line: 19)\n</pre>"
Comments
Comment #2
fagoThis is an issue in custom elements.
Comment #4
fagoFixed it by converting it to the new API.
Comment #5
fago