Add relation between switchers and active configuration

Created on 2 July 2018, almost 7 years ago
Updated 11 August 2023, over 1 year ago

My proposal is about connecting environment_indicator.indicator and withenvironment_indicator.switcher.*

If we have this connection, we have next options:
1. Automatically detect current env based on current domain/path
2. Create service to get active env.
3. (My use case) Create condition plugin that can be used to show/hide blocks in specific environments.

Simplest way is to add id key to environment_indicator.indicator.

I wrote working patch, it don't do anything if id is not present in environment_indicator.indicator config.
If configured properly, then you can setup any block to show/hide based on current environment.

I need help in testing & writing docs.
Also admin/config/development/environment-indicator/current should be updated to provide UI way.

Another way to make progress on module's architecture is to how environment_indicator_page_top is work, provide drupal 8 services, etc.

πŸ“Œ Task
Status

Closed: outdated

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine 5n00py

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024