You are here

protected function AcsfConfigRest::loadConfig in Acquia Cloud Site Factory Connector 8.2

Same name and namespace in other branches
  1. 8 src/AcsfConfigRest.php \Drupal\acsf\AcsfConfigRest::loadConfig()

Implements AcsfConfig::loadConfig().

Overrides AcsfConfigDefault::loadConfig

File

src/AcsfConfigRest.php, line 13

Class

AcsfConfigRest
Creates a config object using our REST API keys.

Namespace

Drupal\acsf

Code

protected function loadConfig() {
  parent::loadConfig();
  $this->username = $GLOBALS['gardens_site_settings']['conf']['acsf_site_id'];
  $this->password = $GLOBALS['gardens_site_settings']['conf']['site_api_key'];
}