Allow configuration of forms to include and exclude

Created on 26 May 2024, 6 months ago
Updated 11 June 2024, 5 months ago

Problem/Motivation

This module already uses a hardcoded list of forms to explicitly include, in keysave.module:

  $forms_to_enable = [
    'user_admin_permissions',
    'system_modules',
    'system_modules_uninstall',
  ];

A site builder should be able to configure this list, for example to include forms specific to their site. If adding such configuration, we could also provide the option to specify forms that should be excluded.

Proposed resolution

Add a configuration form, and then have the code in keysave.module use the site's configuration.

This will require:
Creating the configuration form and having it save the input.
Creating a schema file.
Provide default configuration that includes the modules specified today.
Define a route for the form.
Add the route to the admin menu.
Add the route to the info.yml file under the "configure" key.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada mandclu

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024