public function FlysystemPluginInterface::getAdapter in Flysystem 3.x
Same name and namespace in other branches
- 8 src/Plugin/FlysystemPluginInterface.php \Drupal\flysystem\Plugin\FlysystemPluginInterface::getAdapter()
- 7 src/Plugin/FlysystemPluginInterface.php \Drupal\flysystem\Plugin\FlysystemPluginInterface::getAdapter()
- 2.0.x src/Plugin/FlysystemPluginInterface.php \Drupal\flysystem\Plugin\FlysystemPluginInterface::getAdapter()
- 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
Namespace
Drupal\flysystem\PluginCode
public function getAdapter();