DummyRemoteStreamWrapper.php
Same filename and directory in other branches
- 10 core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php
- 11.x core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php
- 9 core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php
- 8.9.x core/modules/file/tests/file_test/src/StreamWrapper/DummyRemoteStreamWrapper.php
Namespace
Drupal\file_test\StreamWrapperFile
-
core/
modules/ file/ tests/ file_test/ src/ StreamWrapper/ DummyRemoteStreamWrapper.php
View source
<?php
declare (strict_types=1);
namespace Drupal\file_test\StreamWrapper;
use Drupal\Core\StreamWrapper\PublicStream;
/**
* Helper class for testing the stream wrapper registry.
*
* Dummy remote stream wrapper implementation (dummy-remote://).
*
* Basically just the public scheme but not returning a local file for realpath.
*/
class DummyRemoteStreamWrapper extends PublicStream {
/**
* {@inheritdoc}
*/
public function getName() {
return 'Dummy files (remote)';
}
/**
* {@inheritdoc}
*/
public function getDescription() {
return 'Dummy wrapper for testing (remote).';
}
public function realpath() {
return FALSE;
}
}
Classes
| Title | Deprecated | Summary |
|---|---|---|
| DummyRemoteStreamWrapper | Helper class for testing the stream wrapper registry. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.