diff --git a/core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php b/core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php
index e1eb60e..c21cd84 100644
--- a/core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php
+++ b/core/lib/Drupal/Core/Config/Entity/DraggableListBuilder.php
@@ -128,8 +128,10 @@ public function buildForm(array $form, FormStateInterface $form_state) {
     }
     foreach ($this->entities as $entity) {
       $row = $this->buildRow($entity);
-      if (isset($row['label'])) {
-        $row['label'] = array('#markup' => $row['label']);
+      foreach ($row as $key => $value) {
+        if (is_scalar($value)) {
+          $row[$key] = ['#markup' => $value];
+        }
       }
       if (isset($row['weight'])) {
         $row['weight']['#delta'] = $delta;
