Last active
September 19, 2018 08:38
-
-
Save QuentinFonteneau/005a067e0164d0caf2cae074cdd9547b to your computer and use it in GitHub Desktop.
[Drupal 8] Get config from settings.php
This file contains hidden or 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
// In your settings.php (or custom_settings.php) | |
$config['system.maintenance']['message']['sorry'] = 'Sorry, our site is down now.'; | |
// To retrieve this config in PHP, do this : | |
\Drupal::config('system.maintenance')->get('message')['sorry']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment