Skip to content
Snippets Groups Projects
Commit 2d6b275b authored by Stephen Mustgrave's avatar Stephen Mustgrave Committed by Pierre Dureau
Browse files

Issue #3467219 by smustgrave: Fix InvalidComponentException in links' text property

parent a7304718
No related branches found
No related tags found
1 merge request!179Issue #3467219: Fatal error in patterns
Pipeline #250464 passed
......@@ -102,11 +102,11 @@ class LinksPropType extends PropTypePluginBase implements ContainerFactoryPlugin
if (array_key_exists("text", $item)) {
// Examples: links.html.twig, breadcrumb.html.twig, pager.html.twig,
// views_mini_pager.html.twig.
$item["title"] = $item["text"];
$item["title"] = (string) $item["text"];
unset($item["text"]);
}
if (!array_key_exists("title", $item)) {
$item["title"] = $index;
$item["title"] = (string) $index;
}
if (array_key_exists("href", $item)) {
// Examples: pager.html.twig, views_mini_pager.html.twig.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment