You are here

public function ContentSyncSettings::isPreviewEnabled 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::isPreviewEnabled()
  2. 2.0.x src/Controller/ContentSyncSettings.php \Drupal\cms_content_sync\Controller\ContentSyncSettings::isPreviewEnabled()

Return value

bool

File

src/Controller/ContentSyncSettings.php, line 134

Class

ContentSyncSettings
Class ContentSyncSettings.

Namespace

Drupal\cms_content_sync\Controller

Code

public function isPreviewEnabled() {
  if (null !== $this->isPreviewEnabled) {
    return $this->isPreviewEnabled;
  }
  return $this->isPreviewEnabled = boolval($this->configFactory
    ->get('cms_content_sync.settings')
    ->get('cms_content_sync_enable_preview'));
}