public static function SyncCoreFactory::getSyncCoreV2Url in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 2.0.x src/SyncCoreInterface/SyncCoreFactory.php \Drupal\cms_content_sync\SyncCoreInterface\SyncCoreFactory::getSyncCoreV2Url()
2 calls to SyncCoreFactory::getSyncCoreV2Url()
- Pool::getSyncCoreUrl in src/
Entity/ Pool.php - Returns the Sync Core URL for this pool.
- SyncCoreFactory::getSyncCoreV2 in src/
SyncCoreInterface/ SyncCoreFactory.php
File
- src/
SyncCoreInterface/ SyncCoreFactory.php, line 28
Class
- SyncCoreFactory
- Class SyncCoreFactory.
Namespace
Drupal\cms_content_sync\SyncCoreInterfaceCode
public static function getSyncCoreV2Url() {
$url = getenv('CONTENT_SYNC_SYNC_CORE_URL');
if (!$url) {
$url = DrupalApplication::get()
->getSyncCoreUrl();
if (!$url) {
throw new \Exception('No Sync Core URL set. Please register this site first.');
}
}
return $url;
}