protected function ExportQueueResolver::getEntity in Content Synchronization 8.2
Same name and namespace in other branches
- 3.0.x src/DependencyResolver/ExportQueueResolver.php \Drupal\content_sync\DependencyResolver\ExportQueueResolver::getEntity()
Gets an entity.
Parameters
$identifier: An entity identifier to process.
$normalized_entities: An array of entity identifiers to process.
Return value
bool|array Array of entity data to export or FALSE if no entity found (db error).
1 call to ExportQueueResolver::getEntity()
- ExportQueueResolver::depthFirstSearch in src/
DependencyResolver/ ExportQueueResolver.php - Builds a graph placing the deepest vertexes at the first place.
File
- src/
DependencyResolver/ ExportQueueResolver.php, line 71
Class
- ExportQueueResolver
- Class ImportQueueResolver.
Namespace
Drupal\content_sync\DependencyResolverCode
protected function getEntity($identifier, $normalized_entities) {
if (!empty($normalized_entities[$identifier])) {
$entity = $normalized_entities[$identifier];
}
else {
$activeStorage = new ContentDatabaseStorage(\Drupal::database(), 'cs_db_snapshot');
$entity = $activeStorage
->cs_read($identifier);
}
return $entity;
}