I have a use case where I want to use $config['environment_indicator.switcher.' . $env]['status'] = FALSE; in a settings PHP file, to disable some defined environments conditionally.
Unfortunately, the status property is present in the config YML file but is not taken into account to generate the switch menu. Here's a patch.

CommentFileSizeAuthor
environment_indicator-status_check.patch1.39 KBgaëlg

Comments

GaëlG created an issue. See original summary.

e0ipso’s picture

I made some minor modifications.

  • e0ipso committed 529f5d0 on 8.x-3.x authored by GaëlG
    Issue #3080166 by GaëlG, e0ipso: Switcher config status not taken into...
e0ipso’s picture

Status: Needs review » Fixed
Thanks for contributing @GaëlG! Your contributions make this module better and more useful.
gaëlg’s picture

:) Thank you for the quick commit!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.