public function S3fsCorsAdminForm::__construct in S3 File System CORS Upload 8
S3fsCorsAdminForm constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory interface.
\Drupal\s3fs\S3fsServiceInterface $s3fs: The S3fs service interface.
Throws
\Drupal\s3fs\S3fsException The S3fs exception.
Overrides ConfigFormBase::__construct
File
- src/
Form/ S3fsCorsAdminForm.php, line 37
Class
- S3fsCorsAdminForm
- Config settings for S3FS Cors.
Namespace
Drupal\s3fs_cors\FormCode
public function __construct(ConfigFactoryInterface $config_factory, S3fsServiceInterface $s3fs) {
parent::__construct($config_factory);
$s3_config = $this
->config('s3fs.settings')
->get();
$this->s3Client = $s3fs
->getAmazonS3Client($s3_config);
}