system-modules-uninstall.html.twig
Same filename in this branch
Same filename in other branches
- 8.9.x core/themes/stable/templates/admin/system-modules-uninstall.html.twig
- 8.9.x core/modules/system/templates/system-modules-uninstall.html.twig
- 10 core/themes/stable9/templates/admin/system-modules-uninstall.html.twig
- 10 core/modules/system/templates/system-modules-uninstall.html.twig
- 11.x core/themes/stable9/templates/admin/system-modules-uninstall.html.twig
- 11.x core/modules/system/templates/system-modules-uninstall.html.twig
Theme override for the modules uninstall page.
Available variables:
- form: The modules uninstall form.
- modules: Contains multiple module instances. Each module contains:
- attributes: Attributes on the row.
- module_name: The name of the module.
- checkbox: A checkbox for uninstalling the module.
- checkbox_id: A unique identifier for interacting with the checkbox element.
- name: The human-readable name of the module.
- description: The description of the module.
- disabled_reasons: (optional) A list of reasons why this module cannot be uninstalled.
See also
template_preprocess_system_modules_uninstall()
File
-
core/
themes/ stable/ templates/ admin/ system-modules-uninstall.html.twig
View source
- {#
- /**
- * @file
- * Theme override for the modules uninstall page.
- *
- * Available variables:
- * - form: The modules uninstall form.
- * - modules: Contains multiple module instances. Each module contains:
- * - attributes: Attributes on the row.
- * - module_name: The name of the module.
- * - checkbox: A checkbox for uninstalling the module.
- * - checkbox_id: A unique identifier for interacting with the checkbox
- * element.
- * - name: The human-readable name of the module.
- * - description: The description of the module.
- * - disabled_reasons: (optional) A list of reasons why this module cannot be
- * uninstalled.
- *
- * @see template_preprocess_system_modules_uninstall()
- */
- #}
- {{ form.filters }}
-
- <table class="responsive-enabled" data-striping="1">
- <thead>
- <tr>
- <th>{{ 'Uninstall'|t }}</th>
- <th>{{ 'Name'|t }}</th>
- <th>{{ 'Description'|t }}</th>
- </tr>
- </thead>
- <tbody>
- {% for module in modules %}
- {% set zebra = cycle(['odd', 'even'], loop.index0) -%}
- <tr{{ module.attributes.addClass(zebra) }}>
- <td align="center">
- {{- module.checkbox -}}
- </td>
- <td>
- <label for="{{ module.checkbox_id }}" class="module-name table-filter-text-source">{{ module.name }}</label>
- </td>
- <td class="description">
- <span class="text module-description">{{ module.description }}</span>
- {% if module.reasons_count > 0 %}
- <div class="admin-requirements">
- {%- trans -%}
- The following reason prevents {{ module.module_name }} from being uninstalled:
- {%- plural module.reasons_count -%}
- The following reasons prevent {{ module.module_name }} from being uninstalled:
- {%- endtrans %}
- <div class="item-list">
- <ul>
- {%- for reason in module.validation_reasons -%}
- <li>{{ reason }}</li>
- {%- endfor -%}
- {%- if module.required_by -%}
- <li>{{ 'Required by: @module-list'|t({'@module-list': module.required_by|safe_join(', ') }) }}</li>
- {%- endif -%}
- </ul>
- </div>
- </div>
- {% endif %}
- </td>
- </tr>
- {% else %}
- <tr class="odd">
- <td colspan="3" class="empty message">{{ 'No modules are available to uninstall.'|t }}</td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
-
- {{ form|without('filters', 'modules', 'uninstall') }}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.