function PrivateStreamTrait::getExternalUrl in Libraries API 8.3
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".
Return value
string Returns a string containing a web accessible URL for the resource.
See also
\Drupal\Core\StreamWrapper\StreamWrapperInterface::getExternalUrl()
File
- src/
StreamWrapper/ PrivateStreamTrait.php, line 25
Class
- PrivateStreamTrait
- Provides a trait for local streams that are not publicly accessible.
Namespace
Drupal\libraries\StreamWrapperCode
function getExternalUrl() {
throw new \LogicException("{$this->getName()} should not be public.");
}