public static function SyncCoreFactory::getSyncCore in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/SyncCoreInterface/SyncCoreFactory.php \Drupal\cms_content_sync\SyncCoreInterface\SyncCoreFactory::getSyncCore()
- 2.0.x src/SyncCoreInterface/SyncCoreFactory.php \Drupal\cms_content_sync\SyncCoreInterface\SyncCoreFactory::getSyncCore()
Return an instance of the ISyncCore Client for the given URL. Cache clients.
Parameters
string $sync_core_url: The base URL to the Sync Core
Return value
\EdgeBox\SyncCore\Interfaces\ISyncCore
9 calls to SyncCoreFactory::getSyncCore()
- CopyRemoteFlow::flowListForm in src/
Form/ CopyRemoteFlow.php - Step 3: Select the remote Flow to import now.
- CopyRemoteFlow::getCurrentFormStep in src/
Form/ CopyRemoteFlow.php - Return the current step of our multi-step form.
- CopyRemoteFlow::getFlowConfig in src/
Form/ CopyRemoteFlow.php - Get a remote Flow config from the Sync Core.
- CopyRemoteFlow::getRemotePools in src/
Form/ CopyRemoteFlow.php - List all remote pools that aren't used locally yet.
- FlowForm::validateSyncCoreAccessToSite in src/
Form/ FlowForm.php - Ask the Sync Core to ping the site for all required methods and show an error in the form if the site doesn't respond in time or with an error code.
File
- src/
SyncCoreInterface/ SyncCoreFactory.php, line 35
Class
- SyncCoreFactory
- Class SyncCoreFactory.
Namespace
Drupal\cms_content_sync\SyncCoreInterfaceCode
public static function getSyncCore($sync_core_url) {
if (!empty(self::$clients[$sync_core_url])) {
return self::$clients[$sync_core_url];
}
return self::$clients[$sync_core_url] = new SyncCore(DrupalApplication::get(), $sync_core_url);
}