Created
February 9, 2020 10:40
-
-
Save amitaibu/e25766c939443ebf1db83ce0e1be185c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$detected_env = 'dev'; | |
switch ($detected_env) { | |
case 'dev': | |
$config['config_split.config_split.dev']['status'] = TRUE; | |
$config['environment_indicator.indicator']['bg_color'] = '#4caf50'; | |
$config['environment_indicator.indicator']['fg_color'] = '#000000'; | |
$config['environment_indicator.indicator']['name'] = 'Dev'; | |
break; | |
case 'live': | |
$config['config_split.config_split.live']['status'] = TRUE; | |
$config['environment_indicator.indicator']['bg_color'] = '#ef5350'; | |
$config['environment_indicator.indicator']['fg_color'] = '#000000'; | |
$config['environment_indicator.indicator']['name'] = 'Live'; | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment