function DummyStreamWrapper::getExternalUrl

Override getExternalUrl().

Return the HTML URI of a public file.

Return value

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

Overrides StreamWrapperInterface::getExternalUrl

File

core/modules/file/tests/file_test/src/StreamWrapper/DummyStreamWrapper.php, line 48

Class

DummyStreamWrapper
Helper class for testing the stream wrapper registry.

Namespace

Drupal\file_test\StreamWrapper

Code

public function getExternalUrl() {
  return '/dummy/example.txt';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.