- Issue created by @kopeboy
Not sure if this is a bug or just a support request or documentation task, ie. I don't know how should I verify the social accounts I link.
Add this module on a fresh Drupal 10.3.1 install and add a multivalue link field to User account, and set it to display as Decorated Links.
Go to your Github profile, edit it and under Social accounts add the URL of your user at your (still local, with DDEV) Drupal site (https://example.ddev.site/user/1), save.
Go to /user/1 to view the user and get white screen.
(Removing the link from your github page and clearing the Drupal caches will get rid of the error!)
TypeError: Drupal\link_decorator\Plugin\Field\FieldFormatter\DecoratedLinksFormatter::verify(): Return value must be of type string, int returned in Drupal\link_decorator\Plugin\Field\FieldFormatter\DecoratedLinksFormatter->verify() (line 422 of modules/contrib/link_decorator/src/Plugin/Field/FieldFormatter/DecoratedLinksFormatter.php).
Drupal\link_decorator\Plugin\Field\FieldFormatter\DecoratedLinksFormatter->decorate() (Line: 291)
Drupal\link_decorator\Plugin\Field\FieldFormatter\DecoratedLinksFormatter->viewElements() (Line: 91)
Drupal\Core\Field\FormatterBase->view() (Line: 268)
Drupal\Core\Entity\Entity\EntityViewDisplay->buildMultiple() (Line: 282)
Drupal\layout_builder\Entity\LayoutBuilderEntityViewDisplay->buildMultiple() (Line: 340)
Drupal\Core\Entity\EntityViewBuilder->buildComponents() (Line: 282)
Drupal\Core\Entity\EntityViewBuilder->buildMultiple() (Line: 239)
Drupal\Core\Entity\EntityViewBuilder->build()
call_user_func_array() (Line: 113)
Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 870)
Drupal\Core\Render\Renderer->doCallback() (Line: 432)
Drupal\Core\Render\Renderer->doRender() (Line: 248)
Drupal\Core\Render\Renderer->render() (Line: 238)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 231)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 128)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
call_user_func() (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 186)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)
Active
1.0
Code