diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityListController.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityListController.php index 86afad1..ddbeb6c 100644 --- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityListController.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityListController.php @@ -101,16 +101,16 @@ public function buildHeader() { */ public function buildRow(EntityInterface $entity) { $row = parent::buildRow($entity); + // Use markup here to allow child implementations to add classes. + $row['label'] = array('data' => array( + '#markup' => check_plain($row['label']), + )); unset($row['id']); if (empty($this->weightKey)) { return $row; } // Override default values to markup elements. - $row['label'] = array('data' => array( - '#markup' => check_plain($row['label']), - )); - $row['#attributes']['class'][] = 'draggable'; $row['#weight'] = $entity->get($this->weightKey); // Add weight column.