diff --git a/core/modules/system/system.admin.inc b/core/modules/system/system.admin.inc
index 88317f9..7b7677a 100644
--- a/core/modules/system/system.admin.inc
+++ b/core/modules/system/system.admin.inc
@@ -229,7 +229,15 @@ function theme_system_modules_details($variables) {
// Add the module label and expand/collapse functionality.
$id = Html::getUniqueId('module-' . $key);
- $col2 = SafeMarkup::format('', ['@id' => $id, '@enable_id' => $module['enable']['#id'], '@module_name' => drupal_render($module['name'])]);
+ $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.
@@ -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::format(' @description', ['@description' => 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);
}