Issue #3327950 by xjm, longwave: Remove last remaining list() from core

merge-requests/3150/head
catch 2022-12-19 18:00:22 +00:00
parent bf8bde91ab
commit 8a90cc9d39
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ class LinkWidget extends WidgetBase {
$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.