You are here

public static function SyncCoreFactory::getAnySyncCore in CMS Content Sync 2.0.x

Same name and namespace in other branches
  1. 8 src/SyncCoreInterface/SyncCoreFactory.php \Drupal\cms_content_sync\SyncCoreInterface\SyncCoreFactory::getAnySyncCore()
  2. 2.1.x src/SyncCoreInterface/SyncCoreFactory.php \Drupal\cms_content_sync\SyncCoreInterface\SyncCoreFactory::getAnySyncCore()

Return value

null|\EdgeBox\SyncCore\Interfaces\ISyncCore

1 call to SyncCoreFactory::getAnySyncCore()
ContentSyncSettings::getSiteName in src/Controller/ContentSyncSettings.php

File

src/SyncCoreInterface/SyncCoreFactory.php, line 145

Class

SyncCoreFactory
Class SyncCoreFactory.

Namespace

Drupal\cms_content_sync\SyncCoreInterface

Code

public static function getAnySyncCore() {
  $cores = self::getAllSyncCores();
  if (!count($cores)) {
    return null;
  }
  return reset($cores);
}