public function ContentHubEntitiesTracking::loadMultipleByUuid in Acquia Content Hub 8
Method to load multiple uuid, timestamp by given array.
Parameters
array $uuids: Array of uuid.
Return value
array Array[uuid] = timestamp
File
- src/
ContentHubEntitiesTracking.php, line 1012
Class
- ContentHubEntitiesTracking
- Tracks in a table the list of all entities imported from Content Hub.
Namespace
Drupal\acquia_contenthubCode
public function loadMultipleByUuid(array $uuids) {
$query = $this->database
->select(self::TABLE, 'acet');
$query
->addField('acet', 'entity_uuid');
$query
->addField('acet', 'modified');
$query
->condition('entity_uuid', $uuids, 'IN');
$query
->condition('status_import', self::AUTO_UPDATE_ENABLED);
$result = $query
->execute()
->fetchAllKeyed();
return $result;
}