diff --git a/core/modules/system/system.admin.inc b/core/modules/system/system.admin.inc index 1141a35..7b7677a 100644 --- a/core/modules/system/system.admin.inc +++ b/core/modules/system/system.admin.inc @@ -229,8 +229,16 @@ function theme_system_modules_details($variables) { // Add the module label and expand/collapse functionality. $id = Html::getUniqueId('module-' . $key); - $col2 = ''; - $row[] = array('class' => array('module'), 'data' => SafeMarkup::set($col2)); + $col2 = [ + '#type' => 'inline_template', + '#template' => '', + '#context' => [ + 'id' => $id, + 'enable_id' => $module['enable']['#id'], + 'module_name' => $module['name'], + ], + ]; + $row[] = ['class' => ['module'], 'data' => $col2]; // Add the description, along with any modules it requires. $description = ''; @@ -257,14 +265,18 @@ function theme_system_modules_details($variables) { $description .= $links; $description .= ''; } + $title = [ + '#type' => 'inline_template', + '#template' => ' {{ module_description }}', + '#context' => ['module_description' => $module['description']], + ]; $details = array( '#type' => 'details', - '#title' => SafeMarkup::set(' ' . drupal_render($module['description']) . ''), + '#title' => $title, '#attributes' => array('id' => $module['enable']['#id'] . '-description'), '#description' => $description, ); - $col4 = drupal_render($details); - $row[] = array('class' => array('description', 'expand'), 'data' => $col4); + $row[] = ['class' => ['description', 'expand'], 'data' => $details]; $rows[] = $module['#attributes'] + array('data' => $row); }