You are here

public function FlysystemFactory::getSettings in Flysystem 8

Same name and namespace in other branches
  1. 7 src/FlysystemFactory.php \Drupal\flysystem\FlysystemFactory::getSettings()
  2. 3.x src/FlysystemFactory.php \Drupal\flysystem\FlysystemFactory::getSettings()
  3. 2.0.x src/FlysystemFactory.php \Drupal\flysystem\FlysystemFactory::getSettings()
  4. 3.0.x src/FlysystemFactory.php \Drupal\flysystem\FlysystemFactory::getSettings()

Finds the settings for a given scheme.

Parameters

string $scheme: The scheme.

Return value

array The settings array from settings.php.

2 calls to FlysystemFactory::getSettings()
FlysystemFactory::getAdapter in src/FlysystemFactory.php
Returns the adapter for a scheme.
FlysystemFactory::getPlugin in src/FlysystemFactory.php
Returns the plugin for a scheme.

File

src/FlysystemFactory.php, line 164

Class

FlysystemFactory
A factory for Flysystem filesystems.

Namespace

Drupal\flysystem

Code

public function getSettings($scheme) {
  return isset($this->settings[$scheme]) ? $this->settings[$scheme] : $this->defaults;
}