protected function CopyRemoteFlow::getNewRemotePools in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x src/Form/CopyRemoteFlow.php \Drupal\cms_content_sync\Form\CopyRemoteFlow::getNewRemotePools()
- 2.0.x src/Form/CopyRemoteFlow.php \Drupal\cms_content_sync\Form\CopyRemoteFlow::getNewRemotePools()
Get all pools that exist in the Sync Core but *NOT* locally.
Parameters
array $pool_options:
Return value
array
1 call to CopyRemoteFlow::getNewRemotePools()
- CopyRemoteFlow::poolsForm in src/
Form/ CopyRemoteFlow.php - Step 2: Select pools to look for existing flows for.
File
- src/
Form/ CopyRemoteFlow.php, line 555
Class
- CopyRemoteFlow
- Form handler for the Pool add and edit forms.
Namespace
Drupal\cms_content_sync\FormCode
protected function getNewRemotePools($pool_options) {
$pools = Pool::getAll();
$options = [];
foreach ($pool_options as $id => $name) {
// Exist locally, so can't be selected.
if (isset($pools[$id])) {
continue;
}
$options[$id] = $name;
}
return $options;
}