You are here

public function S3FileMap::isNew in Acquia Content Hub 8.2

Checks if file is new.

Parameters

string $file_uuid: The file uuid.

Return value

bool TRUE if the file hasn't been recorded.

1 call to S3FileMap::isNew()
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 138

Class

S3FileMap
Responsible for storing information about file s3 source.

Namespace

Drupal\acquia_contenthub_s3

Code

public function isNew(string $file_uuid) : bool {
  return !$this
    ->getFileByUuid($file_uuid);
}