Last active
April 19, 2016 17:45
-
-
Save jacine/0361f9492af6c8d644630655be54b9f1 to your computer and use it in GitHub Desktop.
Theme Environment Settings
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
<?php | |
/** | |
* @file | |
* mytheme.theme | |
*/ | |
use Drupal\Core\Site\Settings; | |
function mytheme_css_alter(&$css) { | |
$environent = Settings::get('theme_environment', NULL); | |
ksm($environent); // returns "development" Yay! | |
} |
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
<?php | |
/** | |
* @file | |
* settings.local.php | |
*/ | |
$settings['theme_environment'] = 'development'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment