protected function FlysystemS3FileSystem::isPrivateS3Scheme in Flysystem - S3 2.0.x
Same name and namespace in other branches
- 8 src/File/FlysystemS3FileSystem.php \Drupal\flysystem_s3\File\FlysystemS3FileSystem::isPrivateS3Scheme()
Return if a scheme is a private S3 scheme.
Parameters
string $scheme: The scheme to check.
Return value
bool TRUE if the scheme's S3 acl is set to 'private'.
1 call to FlysystemS3FileSystem::isPrivateS3Scheme()
- FlysystemS3FileSystem::chmod in src/
File/ FlysystemS3FileSystem.php - Extend chmod(), respecting S3's ACL setting.
File
- src/
File/ FlysystemS3FileSystem.php, line 81
Class
- FlysystemS3FileSystem
- Decorates the Drupal FileSystem service to handle chmod() for S3.
Namespace
Drupal\flysystem_s3\FileCode
protected function isPrivateS3Scheme($scheme) {
$settings = $this->settings
->get('flysystem', []);
return isset($settings[$scheme]) && $settings[$scheme]['driver'] == 's3' && isset($settings[$scheme]['config']['options']['ACL']) && $settings[$scheme]['config']['options']['ACL'] == 'private';
}