Get values from $settings variable Tue, 11/20/2018 When you set or override some variables in settings.php with $settings var and want to get it in your code, call it like this. use Drupal\Core\Site\Settings; $mySetting = Settings::get('some_setting', NULL); Drupal 8 Modules View the discussion thread.