I am trying to set a couple of enviroment variables in settings.php and get them in mymodule.module. Here is my harcoded code:
$account_sid = '123456';
$auth_token = '78910';
// In production, these should be environment variables.
I have placed in the settings.php:
$settings['event_account_sid'] = '123456';
$settings['event_auth_token'] = '78910';
and then I changed the code in mymodule.module to:
use Drupal\Core\Site\Settings;
$account_sid;
$auth_token;