Commit 8540c2f1 authored by catch's avatar catch

Issue #2501971 by stefan.r, alexpott: Remove SafeMarkup::set in FieldStorageConfigListBuilder

parent 8d12555b
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
namespace Drupal\field_ui; namespace Drupal\field_ui;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Config\Entity\ConfigEntityListBuilder; use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityManagerInterface; use Drupal\Core\Entity\EntityManagerInterface;
...@@ -119,13 +118,11 @@ public function buildRow(EntityInterface $field_storage) { ...@@ -119,13 +118,11 @@ public function buildRow(EntityInterface $field_storage) {
$usage[] = $this->bundles[$entity_type_id][$bundle]['label']; $usage[] = $this->bundles[$entity_type_id][$bundle]['label'];
} }
} }
$usage_escaped = ''; $row['data']['usage']['data'] = [
$separator = ''; '#theme' => 'item_list',
foreach ($usage as $usage_item) { '#items' => $usage,
$usage_escaped .= $separator . SafeMarkup::escape($usage_item); '#context' => ['list_style' => 'comma-list'],
$separator = ', '; ];
}
$row['data']['usage'] = SafeMarkup::set($usage_escaped);
return $row; return $row;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment