You are here

public function DummyReadOnlyStreamWrapper::getExternalUrl in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/file/tests/file_test/src/StreamWrapper/DummyReadOnlyStreamWrapper.php \Drupal\file_test\StreamWrapper\DummyReadOnlyStreamWrapper::getExternalUrl()
  2. 9 core/modules/file/tests/file_test/src/StreamWrapper/DummyReadOnlyStreamWrapper.php \Drupal\file_test\StreamWrapper\DummyReadOnlyStreamWrapper::getExternalUrl()

Override getExternalUrl().

Return the HTML URI of a public file.

Overrides StreamWrapperInterface::getExternalUrl

File

core/modules/file/tests/file_test/src/StreamWrapper/DummyReadOnlyStreamWrapper.php, line 46

Class

DummyReadOnlyStreamWrapper
Helper class for testing the stream wrapper registry.

Namespace

Drupal\file_test\StreamWrapper

Code

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