You are here

protected function MigrationDefinitionCreator::getDefaultMigrationId in GatherContent 8.5

Returns the main/default migration id for sub migrations.

1 call to MigrationDefinitionCreator::getDefaultMigrationId()
MigrationDefinitionCreator::setLanguageDefinitions in src/MigrationDefinitionCreator.php
Set migration language dependencies.

File

src/MigrationDefinitionCreator.php, line 740

Class

MigrationDefinitionCreator
Create dynamic migration definitions.

Namespace

Drupal\gathercontent

Code

protected function getDefaultMigrationId($definitions) {
  $defaultLangMigrationId = '';
  foreach ($definitions as $definition) {
    if ($definition['langcode'] == $this->siteDefaultLangCode) {
      $defaultLangMigrationId = $definition['id'];
    }
  }
  return $defaultLangMigrationId;
}