You are here

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

Return value

bool

File

src/Controller/ContentSyncSettings.php, line 144

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'));
}