You are here

public static function SyncCoreFactory::getDummySyncCoreV2 in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 2.0.x src/SyncCoreInterface/SyncCoreFactory.php \Drupal\cms_content_sync\SyncCoreInterface\SyncCoreFactory::getDummySyncCoreV2()

Allow missing base URL.

Return value

\EdgeBox\SyncCore\V2\SyncCore

1 call to SyncCoreFactory::getDummySyncCoreV2()
Embed::init in src/Controller/Embed.php

File

src/SyncCoreInterface/SyncCoreFactory.php, line 46

Class

SyncCoreFactory
Class SyncCoreFactory.

Namespace

Drupal\cms_content_sync\SyncCoreInterface

Code

public static function getDummySyncCoreV2() {
  try {
    return self::getSyncCoreV2();
  } catch (\Exception $e) {
  }
  return new \EdgeBox\SyncCore\V2\SyncCore(DrupalApplication::get(), 'https://example.com/sync-core');
}