public function DummyExternalReadOnlyWrapper::getExternalUrl in Drupal 10
@inheritDoc
Overrides StreamWrapperInterface::getExternalUrl
File
- core/
modules/ file/ tests/ file_test/ src/ StreamWrapper/ DummyExternalReadOnlyWrapper.php, line 39
Class
- DummyExternalReadOnlyWrapper
- Helper class for testing the stream wrapper registry.
Namespace
Drupal\file_test\StreamWrapperCode
public function getExternalUrl() {
[
,
$target,
] = explode('://', $this->uri, 2);
return 'https://www.dummy-external-readonly.com/' . $target;
}