You are here

public function SyncCorePoolExport::verifySiteId in CMS Content Sync 2.0.x

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

Check if another site has already connected to this pool with the same site ID.

Return value

null|array

File

src/SyncCorePoolExport.php, line 34

Class

SyncCorePoolExport

Namespace

Drupal\cms_content_sync

Code

public function verifySiteId() {
  try {
    return $this->client
      ->verifySiteId();
  } catch (NotFoundException $e) {
    return null;
  }
}