public function Missing::getAdapter in Flysystem 8
Same name and namespace in other branches
- 7 src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing::getAdapter()
- 3.x src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing::getAdapter()
- 2.0.x src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing::getAdapter()
- 3.0.x src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing::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.
Overrides FlysystemPluginInterface::getAdapter
File
- src/
Flysystem/ Missing.php, line 19
Class
- Missing
- Drupal plugin for the "NullAdapter" Flysystem adapter.
Namespace
Drupal\flysystem\FlysystemCode
public function getAdapter() {
return new MissingAdapter();
}