You are here

protected function ConfigSyncImportForm::getAllChangelistCollections in Configuration Synchronizer 8.2

Returns a list of collections for a given set of changelists.

Parameters

array $changelists: A set of changelists.

Return value

array An array of collection names.

1 call to ConfigSyncImportForm::getAllChangelistCollections()
ConfigSyncImportForm::buildForm in src/Form/ConfigSyncImportForm.php
Form constructor.

File

src/Form/ConfigSyncImportForm.php, line 165

Class

ConfigSyncImportForm

Namespace

Drupal\config_sync\Form

Code

protected function getAllChangelistCollections(array $changelists) {
  $collections = [];
  foreach ($changelists as $extension_changelists) {
    foreach ($extension_changelists as $collection_changelists) {
      $collections = array_unique(array_merge($collections, array_keys($collection_changelists)));
    }
  }
  return $collections;
}