Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Configuration selector

Security covered Under active development 633 sites

This module allows developers to provide multiple versions of optional configuration files for modules and install profiles. It enables specific configurations based on predefined priorities and dependencies, ensuring that user customizations are preserved and only non-destructive configuration changes are made.

The Configuration Selector module allows modules and install profiles to provide multiple versions of optional configuration. For example, if you want to provide a view that lists content that integrates with search_api or content_lock or both or neither. The module allows you to provide 4 different views in config/optional and as different dependencies are installed views are enabled and disabled according to a priority set with the configuration.

How it works

Configuration Selector configuration can be added to configuration entities' third party settings for example:

third_party_settings:
  config_selector:
    feature: your_feature_name
    priority: 10

Note you also should add config_selector to the configuration entity's dependencies like so:

dependencies:
  module:
    - config_selector

When there is multiple active configuration with matching third_party_settings.config_selector.feature values the one with the highest priority will be enabled. All the others will be disabled.

The advantage of only supporting configuration that can be disabled means that any user customisations are not lost as no operation is destructive.

Limitations

The module only works with configuration entities that can be disabled. It provides configuration schema for Views and Blocks out-of-the-box. Many configuration entities cannot be disabled.

Drupal 10–11

Ask your assistant about Configuration selector

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

2 tracked projects depend on this one

Activity

Tracked releases
5
Tracked since
Sep 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
3.0.0 Stable 10–11 Dec 11, 2024
3.0.0-rc1 Pre-release 10–11 Jun 5, 2024
3.x-dev Dev 10–11 Jun 5, 2024
8.x-2.4 Stable 9–10 May 15, 2024
8.x-2.3 Stable 9–10 Sep 15, 2023