public function ContentSyncSettings::isPreviewEnabled in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/Controller/ContentSyncSettings.php \Drupal\cms_content_sync\Controller\ContentSyncSettings::isPreviewEnabled()
- 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\ControllerCode
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'));
}