public function Missing::getAdapter in Flysystem 3.0.x
Same name and namespace in other branches
- 8 src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing::getAdapter()
- 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()
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();
}