class Missing in Flysystem 2.0.x
Same name and namespace in other branches
- 8 src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing
- 7 src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing
- 3.x src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing
- 3.0.x src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing
Drupal plugin for the "NullAdapter" Flysystem adapter.
Plugin annotation
@Adapter(id = "missing")
Hierarchy
- class \Drupal\flysystem\Flysystem\Missing implements FlysystemPluginInterface
Expanded class hierarchy of Missing
3 files declare their use of Missing
- FlysystemBridgeTest.php in tests/
src/ Unit/ FlysystemBridgeTest.php - FlysystemFactoryTest.php in tests/
src/ Unit/ FlysystemFactoryTest.php - MissingTest.php in tests/
src/ Unit/ Flysystem/ MissingTest.php
File
- src/
Flysystem/ Missing.php, line 14
Namespace
Drupal\flysystem\FlysystemView source
class Missing implements FlysystemPluginInterface {
/**
* {@inheritdoc}
*/
public function getAdapter() {
return new MissingAdapter();
}
/**
* {@inheritdoc}
*/
public function getExternalUrl($uri) {
return '';
}
/**
* {@inheritdoc}
*/
public function ensure($force = FALSE) {
return [
[
'severity' => RfcLogLevel::ERROR,
'message' => 'The Flysystem driver is missing.',
'context' => [],
],
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Missing:: |
public | function |
Checks the sanity of the filesystem. Overrides FlysystemPluginInterface:: |
|
Missing:: |
public | function |
Returns the Flysystem adapter. Overrides FlysystemPluginInterface:: |
|
Missing:: |
public | function |
Returns a web accessible URL for the resource. Overrides FlysystemPluginInterface:: |