You are here

public function FlysystemPluginInterface::getExternalUrl in Flysystem 7

Same name and namespace in other branches
  1. 8 src/Plugin/FlysystemPluginInterface.php \Drupal\flysystem\Plugin\FlysystemPluginInterface::getExternalUrl()
  2. 3.x src/Plugin/FlysystemPluginInterface.php \Drupal\flysystem\Plugin\FlysystemPluginInterface::getExternalUrl()
  3. 2.0.x src/Plugin/FlysystemPluginInterface.php \Drupal\flysystem\Plugin\FlysystemPluginInterface::getExternalUrl()
  4. 3.0.x src/Plugin/FlysystemPluginInterface.php \Drupal\flysystem\Plugin\FlysystemPluginInterface::getExternalUrl()

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".

Parameters

string $uri: The URI to provide a URL for.

Return value

string Returns a string containing a web accessible URL for the resource.

1 method overrides FlysystemPluginInterface::getExternalUrl()
FlysystemPluginBase::getExternalUrl in src/Plugin/FlysystemPluginBase.php
Returns a web accessible URL for the resource.

File

src/Plugin/FlysystemPluginInterface.php, line 48
Contains FlysystemPluginInterface.

Class

FlysystemPluginInterface
Interface Flysystem plugins must implement.

Namespace

Drupal\flysystem\Plugin

Code

public function getExternalUrl($uri);