You are here

public function FlysystemPluginInterface::getAdapter in Flysystem 8

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

Returns the Flysystem adapter.

Plugins should not keep references to the adapter. If a plugin needs to perform filesystem operations, it should either use a scheme:// or have the \Drupal\flysystem\FlysystemFactory injected.

Return value

\League\Flysystem\AdapterInterface The Flysytem adapter.

3 methods override FlysystemPluginInterface::getAdapter()
Ftp::getAdapter in src/Flysystem/Ftp.php
Returns the Flysystem adapter.
Local::getAdapter in src/Flysystem/Local.php
Returns the Flysystem adapter.
Missing::getAdapter in src/Flysystem/Missing.php
Returns the Flysystem adapter.

File

src/Plugin/FlysystemPluginInterface.php, line 17

Class

FlysystemPluginInterface

Namespace

Drupal\flysystem\Plugin

Code

public function getAdapter();