You are here

protected function CopyRemoteFlow::getRemotePools in CMS Content Sync 2.1.x

Same name and namespace in other branches
  1. 8 src/Form/CopyRemoteFlow.php \Drupal\cms_content_sync\Form\CopyRemoteFlow::getRemotePools()
  2. 2.0.x src/Form/CopyRemoteFlow.php \Drupal\cms_content_sync\Form\CopyRemoteFlow::getRemotePools()

List all remote pools that aren't used locally yet.

Parameters

$url:

Return value

array

Throws

\Exception

1 call to CopyRemoteFlow::getRemotePools()
CopyRemoteFlow::poolsForm in src/Form/CopyRemoteFlow.php
Step 2: Select pools to look for existing flows for.

File

src/Form/CopyRemoteFlow.php, line 538

Class

CopyRemoteFlow
Form handler for the Pool add and edit forms.

Namespace

Drupal\cms_content_sync\Form

Code

protected function getRemotePools($url) {
  $client = $url ? SyncCoreFactory::getSyncCore($url) : SyncCoreFactory::getSyncCoreV2();
  return $client
    ->getConfigurationService()
    ->listRemotePools();
}