You are here

public function MediaReadOnlyStreamWrapper::getExternalUrl in D7 Media 7

Same name and namespace in other branches
  1. 7.4 includes/MediaReadOnlyStreamWrapper.inc \MediaReadOnlyStreamWrapper::getExternalUrl()
  2. 7.2 includes/MediaReadOnlyStreamWrapper.inc \MediaReadOnlyStreamWrapper::getExternalUrl()
  3. 7.3 includes/MediaReadOnlyStreamWrapper.inc \MediaReadOnlyStreamWrapper::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".

Return value

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

Overrides DrupalStreamWrapperInterface::getExternalUrl

1 call to MediaReadOnlyStreamWrapper::getExternalUrl()
MediaReadOnlyStreamWrapper::realpath in includes/MediaReadOnlyStreamWrapper.inc
Base implementation of realpath().

File

includes/MediaReadOnlyStreamWrapper.inc, line 81

Class

MediaReadOnlyStreamWrapper
A base class for Resource Stream Wrappers.

Code

public function getExternalUrl() {
  return $this
    ->interpolateUrl();
}