You are here

public static function S3CorsManagedFileHelper::getSchemeSettings in Flysystem - S3 8

Same name and namespace in other branches
  1. 2.0.x src/S3CorsManagedFileHelper.php \Drupal\flysystem_s3\S3CorsManagedFileHelper::getSchemeSettings()

Returns the settings for a Flysystem file scheme.

Parameters

string $scheme: A file scheme.

Return value

array The Flysystem file scheme's settings.

2 calls to S3CorsManagedFileHelper::getSchemeSettings()
S3CorsManagedFileHelper::getAcl in src/S3CorsManagedFileHelper.php
Get the default S3 ACL setting for a file scheme.
S3CorsManagedFileHelper::isCorsAvailable in src/S3CorsManagedFileHelper.php
Determines if CORS upload is available.

File

src/S3CorsManagedFileHelper.php, line 86

Class

S3CorsManagedFileHelper
Helper for altering and processing a managed_file element for CORS upload.

Namespace

Drupal\flysystem_s3

Code

public static function getSchemeSettings($scheme) {
  return \Drupal::service('flysystem_factory')
    ->getSettings($scheme);
}