From 8a90cc9d397a3509d283258ba2d741719c6fae46 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Mon, 19 Dec 2022 18:00:22 +0000 Subject: [PATCH] Issue #3327950 by xjm, longwave: Remove last remaining list() from core --- core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php index 031f89bebad3..ebc3ee61e99f 100644 --- a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php +++ b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php @@ -72,7 +72,7 @@ protected static function getUriAsDisplayableString($uri) { $displayable_string = $uri_reference; } elseif ($scheme === 'entity') { - list($entity_type, $entity_id) = explode('/', substr($uri, 7), 2); + [$entity_type, $entity_id] = explode('/', substr($uri, 7), 2); // Show the 'entity:' URI as the entity autocomplete would. // @todo Support entity types other than 'node'. Will be fixed in // https://www.drupal.org/node/2423093. -- GitLab