';
+ $item['links'] = $links;
}
- $title = [
- '#type' => 'inline_template',
- '#template' => '{{ module_description }}',
- '#context' => ['module_description' => $module['description']],
- ];
- $details = array(
- '#type' => 'details',
- '#title' => $title,
- '#attributes' => array('id' => $module['enable']['#id'] . '-description'),
- '#description' => $description,
- );
- $item['details'] = $details;
$item['attributes'] = new Attribute($module['#attributes']);
$modules[] = $item;
diff -u b/core/modules/system/templates/system-modules-details.html.twig b/core/modules/system/templates/system-modules-details.html.twig
--- b/core/modules/system/templates/system-modules-details.html.twig
+++ b/core/modules/system/templates/system-modules-details.html.twig
@@ -13,8 +13,15 @@
* - modules: Contains multiple module instances. Each module contains:
* - attributes: Attributes on the row.
* - checkbox: A checkbox for enabling the module.
- * - name: The name of the module.
- * - details: Other details about the module.
+ * - name: The human-readable name of the module.
+ * - id: A unqiue id for interacting with the details element.
+ * - enable_id: A unique id for interacting with the checkbox element.
+ * - description: The description of the module.
+ * - machine_name: The module's machine name.
+ * - version: (optional) Information about the module version.
+ * - requires: (optional) A list of modules that this module requires.
+ * - required_by: (optional) A list of modules that require this module.
+ * - links: (optional) A list of administration links provided by the module.
*
* @see template_preprocess_system_modules_details()
*
@@ -46,9 +53,32 @@
- {{- module.name -}}
+