interface FlysystemPluginInterface in Flysystem 7
Same name and namespace in other branches
- 8 src/Plugin/FlysystemPluginInterface.php \Drupal\flysystem\Plugin\FlysystemPluginInterface
- 3.x src/Plugin/FlysystemPluginInterface.php \Drupal\flysystem\Plugin\FlysystemPluginInterface
- 2.0.x src/Plugin/FlysystemPluginInterface.php \Drupal\flysystem\Plugin\FlysystemPluginInterface
- 3.0.x src/Plugin/FlysystemPluginInterface.php \Drupal\flysystem\Plugin\FlysystemPluginInterface
Interface Flysystem plugins must implement.
Hierarchy
- interface \Drupal\flysystem\Plugin\FlysystemPluginInterface
Expanded class hierarchy of FlysystemPluginInterface
All classes that implement FlysystemPluginInterface
File
- src/
Plugin/ FlysystemPluginInterface.php, line 13 - Contains FlysystemPluginInterface.
Namespace
Drupal\flysystem\PluginView source
interface FlysystemPluginInterface {
/**
* Creates a new plugin instance.
*
* @param array $configuration
* The configuration array.
*
* @return \Drupal\flysystem\Plugin\FlysystemPluginInterface
* A new plugin.
*/
public static function create(array $configuration);
/**
* Returns the Flysystem adapter
*
* @return \League\Flysystem\AdapterInterface
* The Flsysytem adapter.
*/
public function getAdapter();
/**
* Returns a web accessible URL for the resource.
*
* This function should return a URL that can be embedded in a web page
* and accessed from a browser. For example, the external URL of
* "youtube://xIpLd0WQKCY" might be
* "http://www.youtube.com/watch?v=xIpLd0WQKCY".
*
* @param string $uri
* The URI to provide a URL for.
*
* @return string
* Returns a string containing a web accessible URL for the resource.
*/
public function getExternalUrl($uri);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FlysystemPluginInterface:: |
public static | function | Creates a new plugin instance. | 1 |
FlysystemPluginInterface:: |
public | function | Returns the Flysystem adapter | 3 |
FlysystemPluginInterface:: |
public | function | Returns a web accessible URL for the resource. | 1 |