To access a config value from settings.php,
Include the Settings class
use Drupal\Core\Site\Settings;
$path = Settings::get('file_temp_path');
- Log in to post comments
To access a config value from settings.php,
Include the Settings class
use Drupal\Core\Site\Settings;
$path = Settings::get('file_temp_path');