function template_preprocess_system_modules_uninstall

Same name and namespace in other branches
  1. 10 core/modules/system/system.admin.inc \template_preprocess_system_modules_uninstall()
  2. 9 core/modules/system/system.admin.inc \template_preprocess_system_modules_uninstall()
  3. 8.9.x core/modules/system/system.admin.inc \template_preprocess_system_modules_uninstall()

Prepares variables for module uninstall templates.

Default template: system-modules-uninstall.html.twig.

Parameters

array $variables: An associative array containing:

  • form: A render element representing the form. Child elements of the form are individual modules. Each module is an associative array containing the following elements:

    • #module_name: The name of the module as a string.
    • name: The name of the module in a renderable array.
    • description: A description of the module.
    • #required_by: (optional) A list of modules that require the module.
    • #validation_reasons: (optional) Additional reasons why the module cannot be uninstalled.
    • #attributes: A list of attributes for the module wrapper.

Deprecated

in drupal:11.3.0 and is removed from drupal:12.0.0. Initial template_preprocess functions are registered directly in hook_theme().

See also

https://www.drupal.org/node/3504125

Related topics

File

core/modules/system/system.module, line 516

Code

function template_preprocess_system_modules_uninstall(&$variables) : void {
  @trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. Initial template_preprocess functions are registered directly in hook_theme(). See https://www.drupal.org/node/3504125', E_USER_DEPRECATED);
  \Drupal::service(SystemAdminThemePreprocess::class)->preprocessSystemModulesUninstall($variables);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.