You are here

protected function CopyRemoteFlow::getFlowConfig 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::getFlowConfig()
  2. 2.0.x src/Form/CopyRemoteFlow.php \Drupal\cms_content_sync\Form\CopyRemoteFlow::getFlowConfig()

Get a remote Flow config from the Sync Core.

Parameters

$url:

$id:

Return value

\EdgeBox\SyncCore\Interfaces\Configuration\IRemoteFlow

3 calls to CopyRemoteFlow::getFlowConfig()
CopyRemoteFlow::flowImportForm in src/Form/CopyRemoteFlow.php
Step 4: Adjust configuration before importing.
CopyRemoteFlow::flowListForm in src/Form/CopyRemoteFlow.php
Step 3: Select the remote Flow to import now.
CopyRemoteFlow::save in src/Form/CopyRemoteFlow.php
Form submission handler for the 'save' action.

File

src/Form/CopyRemoteFlow.php, line 881

Class

CopyRemoteFlow
Form handler for the Pool add and edit forms.

Namespace

Drupal\cms_content_sync\Form

Code

protected function getFlowConfig($url, $id) {
  $client = $url ? SyncCoreFactory::getSyncCore($url) : SyncCoreFactory::getSyncCoreV2();
  return $client
    ->getConfigurationService()
    ->getRemoteFlow($id);
}