You are here

private function S3FileMap::update in Acquia Content Hub 8.2

Updates the fields by the file uuid.

$values = [
  'bucket' => 'some-bucket-name',
  'root_folder' => 'root_folder',
  'origin_uuid' => '8b11ecea-faf3-4f38-97f0-45177a9d89ae',
];

Parameters

string $file_uuid: The file uuid.

array $values: The values to update the fields with. The following format should apply:

1 call to S3FileMap::update()
S3FileMap::record in modules/acquia_contenthub_s3/src/S3FileMap.php
Records the origin of an s3 file.

File

modules/acquia_contenthub_s3/src/S3FileMap.php, line 229

Class

S3FileMap
Responsible for storing information about file s3 source.

Namespace

Drupal\acquia_contenthub_s3

Code

private function update(string $file_uuid, array $values = []) : void {
  $this->database
    ->update(self::TABLE_NAME)
    ->fields($values)
    ->condition('file_uuid', $file_uuid, '=')
    ->execute();
}