/** * Add settings that are missed since the installer isn't run. */ protected function prepareSettings() { parent::prepareSettings(); // Remember the profile which was used. $settings['settings']['install_profile'] = (object) ['value' => $this->installProfile, 'required' => TRUE]; // Generate a hash salt. $settings['settings']['hash_salt'] = (object) ['value' => Crypt::randomBytesBase64(55), 'required' => TRUE]; // Since the installer isn't run, add the database settings here too. $settings['databases']['default'] = (object) ['value' => Database::getConnectionInfo(), 'required' => TRUE]; $this->writeSettings($settings); }