You are here

public function AcsfSite::mergeSiteInfo in Acquia Cloud Site Factory Connector 8.2

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

Merges new site information into the internal state.

Parameters

array $site_info: The information to merge.

3 calls to AcsfSite::mergeSiteInfo()
AcsfSite::initStoredSiteInfo in src/AcsfSite.php
Initializes the internal state of this site.
AcsfSite::saveSiteInfo in src/AcsfSite.php
Saves new site information.
AcsfSite::__construct in src/AcsfSite.php
Constructor.

File

src/AcsfSite.php, line 261

Class

AcsfSite
AcsfSite.

Namespace

Drupal\acsf

Code

public function mergeSiteInfo(array $site_info) {
  if (!empty($site_info)) {
    foreach ($site_info as $key => $value) {
      $this->info[$key] = $value;
    }
  }
}