You are here

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

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

Removes all local information and refreshes data from the Factory.

This is a destructive API function, so use sparingly - only if you can guarantee that there is no loss of required data. Since others may be using this as a storage engine, there could be additional local information saved that you are unaware of.

File

src/AcsfSite.php, line 189

Class

AcsfSite
AcsfSite.

Namespace

Drupal\acsf

Code

public function clean() {
  $this->info = [];
  return $this
    ->refresh();
}