class Missing in Flysystem 7
Same name and namespace in other branches
- 8 src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing
- 3.x src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing
- 2.0.x src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing
- 3.0.x src/Flysystem/Missing.php \Drupal\flysystem\Flysystem\Missing
Drupal plugin for the "MissingAdapter" Flysystem adapter.
Hierarchy
- class \Drupal\flysystem\Plugin\FlysystemPluginBase implements FlysystemPluginInterface
- class \Drupal\flysystem\Flysystem\Missing
Expanded class hierarchy of Missing
File
- src/
Flysystem/ Missing.php, line 16 - Contains \Drupal\flysystem\Flysystem\Missing.
Namespace
Drupal\flysystem\FlysystemView source
class Missing extends FlysystemPluginBase {
/**
* {@inheritdoc}
*/
public function getAdapter() {
return new MissingAdapter();
}
/**
* {@inheritdoc}
*/
public function getExternalUrl($uri) {
return '';
}
/**
* {@inheritdoc}
*/
public function ensure($force = FALSE) {
return array(
array(
'severity' => WATCHDOG_ERROR,
'message' => 'The Flysystem driver is missing.',
'context' => array(),
),
);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FlysystemPluginBase:: |
public static | function |
Creates a new plugin instance. Overrides FlysystemPluginInterface:: |
1 |
FlysystemPluginBase:: |
protected | function | Returns the scheme from the internal URI. | |
FlysystemPluginBase:: |
protected | function | Returns the target file path of a URI. | |
Missing:: |
public | function | ||
Missing:: |
public | function |
Returns the Flysystem adapter Overrides FlysystemPluginInterface:: |
|
Missing:: |
public | function |
Returns a web accessible URL for the resource. Overrides FlysystemPluginBase:: |