protected function MigrationState::getMigrationStates in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate_drupal/src/MigrationState.php \Drupal\migrate_drupal\MigrationState::getMigrationStates()
- 10 core/modules/migrate_drupal/src/MigrationState.php \Drupal\migrate_drupal\MigrationState::getMigrationStates()
Gets migration state information from *.migrate_drupal.yml.
Return value
array An association array keyed by module of the finished and not_finished migrations for each module.
1 call to MigrationState::getMigrationStates()
- MigrationState::buildDeclaredStateBySource in core/modules/ migrate_drupal/ src/ MigrationState.php 
- Gets migration data from *.migrate_drupal.yml sorted by source module.
File
- core/modules/ migrate_drupal/ src/ MigrationState.php, line 269 
Class
- MigrationState
- Determines the migrate state for all modules enabled on the source.
Namespace
Drupal\migrate_drupalCode
protected function getMigrationStates() {
  // Always instantiate a new YamlDiscovery object so that we always search on
  // the up-to-date list of modules.
  $discovery = new YamlDiscovery('migrate_drupal', array_map(function (&$value) {
    return $value . '/migrations/state';
  }, $this->moduleHandler
    ->getModuleDirectories()));
  return $discovery
    ->findAll();
}