You are here

public function ContentSyncSettings::getSiteMachineName in CMS Content Sync 2.0.x

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

Return value

null|string

File

src/Controller/ContentSyncSettings.php, line 377

Class

ContentSyncSettings
Class ContentSyncSettings.

Namespace

Drupal\cms_content_sync\Controller

Code

public function getSiteMachineName() {
  if (null !== $this->siteMachineName) {
    return $this->siteMachineName;
  }
  return $this->siteMachineName = \Drupal::state()
    ->get('cms_content_sync.site_machine_name');
}