You are here

public static function Local::create in Flysystem 7

Same name and namespace in other branches
  1. 8 src/Flysystem/Local.php \Drupal\flysystem\Flysystem\Local::create()
  2. 3.x src/Flysystem/Local.php \Drupal\flysystem\Flysystem\Local::create()
  3. 2.0.x src/Flysystem/Local.php \Drupal\flysystem\Flysystem\Local::create()
  4. 3.0.x src/Flysystem/Local.php \Drupal\flysystem\Flysystem\Local::create()

Creates a new plugin instance.

Parameters

array $configuration: The configuration array.

Return value

\Drupal\flysystem\Plugin\FlysystemPluginInterface A new plugin.

Overrides FlysystemPluginBase::create

File

src/Flysystem/Local.php, line 87
Contains \Drupal\flysystem\Flysystem\Local.

Class

Local
Drupal plugin for the "Local" Flysystem adapter.

Namespace

Drupal\flysystem\Flysystem

Code

public static function create(array $configuration) {
  return new static(variable_get('file_public_path', conf_path() . '/files'), $configuration['root'], !empty($configuration['public']), variable_get('file_chmod_directory', 0775));
}