protected function S3FileOriginLocator::getLocalS3FileSource in Acquia Content Hub 8.2
Returns the current site's s3fs original configuration.
Return value
array The s3 source, bucket and root_folder.
1 call to S3FileOriginLocator::getLocalS3FileSource()
- S3FileOriginLocator::getS3FileSource in modules/
acquia_contenthub_s3/ src/ S3FileOriginLocator.php - Returns the source of the s3 file.
File
- modules/
acquia_contenthub_s3/ src/ S3FileOriginLocator.php, line 197
Class
- S3FileOriginLocator
- Responsible for locating the s3 source of the given file url.
Namespace
Drupal\acquia_contenthub_s3Code
protected function getLocalS3FileSource() : array {
// We need the original unmodified s3fs config object.
// phpcs:ignore
$config = \Drupal::config('s3fs.settings');
return [
'bucket' => $config
->get('bucket'),
'root_folder' => $config
->get('root_folder'),
];
}