public function S3FileSchemeHandler::getFile in Acquia Content Hub 8.2
Makes file available to Drupal through the correct stream wrapper.
This does not return the file, but will save it with the appropriate stream wrapper for Drupal to utilize.
Parameters
\Acquia\ContentHubClient\CDF\CDFObject $object: The CDFObject from which to extract details about getting the file.
Return value
bool Whether the file successfully saved or not.
Overrides FileSchemeHandlerInterface::getFile
File
- modules/
acquia_contenthub_s3/ src/ Plugin/ FileSchemeHandler/ S3FileSchemeHandler.php, line 105
Class
- S3FileSchemeHandler
- S3 file scheme handler.
Namespace
Drupal\acquia_contenthub_s3\Plugin\FileSchemeHandlerCode
public function getFile(CDFObject $object) {
// No import needed, file is served from s3 bucket.
return TRUE;
}