You are here

private function AcsfSite::initStoredSiteInfo in Acquia Cloud Site Factory Connector 8

Same name and namespace in other branches
  1. 8.2 src/AcsfSite.php \Drupal\acsf\AcsfSite::initStoredSiteInfo()

Initializes the internal state of this site.

1 call to AcsfSite::initStoredSiteInfo()
AcsfSite::__construct in src/AcsfSite.php
Constructor.

File

src/AcsfSite.php, line 209

Class

AcsfSite
AcsfSite.

Namespace

Drupal\acsf

Code

private function initStoredSiteInfo() {
  $this->info = [];
  $site_info = $this->variableStorage
    ->getGroup('site_info');
  foreach ($site_info as $key => $value) {
    if (!is_array($value)) {
      $this
        ->mergeSiteInfo([
        $key => $value,
      ]);
    }
    else {
      $this
        ->mergeSiteInfo($value);
    }
  }
}