function _cms_content_sync_is_cloud_version in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x cms_content_sync.module \_cms_content_sync_is_cloud_version()
- 2.0.x cms_content_sync.module \_cms_content_sync_is_cloud_version()
Check whether the Sync Cores used are Cloud based. Default if none exist is YES.
Return value
bool
5 calls to _cms_content_sync_is_cloud_version()
- ManualPull::content in src/
Controller/ ManualPull.php - Render the content synchronization Angular frontend.
- SettingsForm::buildForm in src/
Form/ SettingsForm.php - Form constructor.
- SettingsForm::submitForm in src/
Form/ SettingsForm.php - Form submission handler.
- SyncCorePoolExport::prepareBatch in src/
SyncCorePoolExport.php - Prepare the Sync Core push as a batch operation. Return a batch array with single steps to be executed.
- _cms_content_sync_get_repository_name in ./
cms_content_sync.module - Name the manual pull tab and entity edit settings tab.
File
- ./
cms_content_sync.module, line 1986 - Module file for cms_content_sync.
Code
function _cms_content_sync_is_cloud_version() {
static $result = NULL;
if ($result !== NULL) {
return $result;
}
$result = TRUE;
foreach (Pool::getAll() as $pool) {
if (strpos($pool
->getSyncCoreUrl(), 'cms-content-sync.io') === FALSE) {
$result = FALSE;
break;
}
}
return $result;
}