protected function MigrationStorage::addDependency in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/migrate/src/MigrationStorage.php \Drupal\migrate\MigrationStorage::addDependency()
Add one or more dependencies to a graph.
Parameters
array $graph: The graph so far.
int $id: The migration id.
string $dependency: The dependency string.
array $dynamic_ids: The dynamic id mapping.
1 call to MigrationStorage::addDependency()
- MigrationStorage::buildDependencyMigration in core/
modules/ migrate/ src/ MigrationStorage.php - Builds a dependency tree for the migrations and set their order.
File
- core/
modules/ migrate/ src/ MigrationStorage.php, line 184 - Contains \Drupal\migrate\MigrationStorage.
Class
- MigrationStorage
- Storage for migration entities.
Namespace
Drupal\migrateCode
protected function addDependency(array &$graph, $id, $dependency, $dynamic_ids) {
$dependencies = isset($dynamic_ids[$dependency]) ? $dynamic_ids[$dependency] : array(
$dependency,
);
if (!isset($graph[$id]['edges'])) {
$graph[$id]['edges'] = array();
}
$graph[$id]['edges'] += array_combine($dependencies, $dependencies);
}