You are here

public function ContentSyncSettings::setSiteMachineName in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x src/Controller/ContentSyncSettings.php \Drupal\cms_content_sync\Controller\ContentSyncSettings::setSiteMachineName()
  2. 2.0.x src/Controller/ContentSyncSettings.php \Drupal\cms_content_sync\Controller\ContentSyncSettings::setSiteMachineName()

Parameters

string $set:

File

src/Controller/ContentSyncSettings.php, line 350

Class

ContentSyncSettings
Class ContentSyncSettings.

Namespace

Drupal\cms_content_sync\Controller

Code

public function setSiteMachineName($set) {
  \Drupal::state()
    ->set('cms_content_sync.site_machine_name', $set);

  // Reset so it's computed again.
  $this->siteMachineName = null;
}