public function ExportQueueResolver::resolve in Content Synchronization 8.2
Same name and namespace in other branches
- 3.0.x src/DependencyResolver/ExportQueueResolver.php \Drupal\content_sync\DependencyResolver\ExportQueueResolver::resolve()
Creates a queue.
Parameters
array $normalized_entities: Parsed entities to import.
Return value
array Queue to be processed within a batch process.
Overrides ContentSyncResolverInterface::resolve
File
- src/
DependencyResolver/ ExportQueueResolver.php, line 91
Class
- ExportQueueResolver
- Class ImportQueueResolver.
Namespace
Drupal\content_sync\DependencyResolverCode
public function resolve(array $normalized_entities, $visited = []) {
foreach ($normalized_entities as $identifier => $entity) {
$this
->depthFirstSearch($visited, [
$identifier,
], $normalized_entities);
}
// Reverse the array to adjust it to an array_pop-driven iterator.
return array_reverse($visited);
}