Last active
April 4, 2019 10:46
-
-
Save flesheater/e9deb9991d371bf4e851790496bad44f to your computer and use it in GitHub Desktop.
Custom variable in settings.php
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
settings.php | |
$settings['custom_var'] = '55'; | |
then | |
use Drupal\Core\Site\Settings; | |
$my_var = settings::get('custom_var', '66') ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment